mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
build scripts: correctly find file under source root with package prefix
This commit is contained in:
@@ -230,7 +230,7 @@ class BuildContextImpl extends BuildContext {
|
||||
@Override
|
||||
File findFileInModuleSources(String moduleName, String relativePath) {
|
||||
getSourceRootsWithPrefixes(findRequiredModule(moduleName)).collect {
|
||||
new File(it.first, "$it.second$relativePath")
|
||||
new File(it.first, "${StringUtil.trimStart(relativePath, it.second)}")
|
||||
}.find {it.exists()}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user