!200 叠加编译适配-i和-l两种输入路径

Merge pull request !200 from HanSY/dev
This commit is contained in:
openharmony_ci
2024-12-21 06:47:18 +00:00
committed by Gitee
+3 -2
View File
@@ -136,8 +136,9 @@ uint32_t PackageParser::AddInput(const string& argValue)
return RESTOOL_ERROR;
}
string indexPath = ResourceUtil::GetMainPath(inputPath).Append(RESOURCE_INDEX_FILE).GetPath();
if (ResourceUtil::FileExist(indexPath)) {
string indexPath = FileEntry::FilePath(inputPath).Append(RESOURCE_INDEX_FILE).GetPath();
string indexPathJson = ResourceUtil::GetMainPath(inputPath).Append(RESOURCE_INDEX_FILE).GetPath();
if (ResourceUtil::FileExist(indexPath) || ResourceUtil::FileExist(indexPathJson)) {
inputs_.emplace(inputs_.begin(), inputPath);
} else {
inputs_.push_back(inputPath);