mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
external build: use file separator in startsWith check
This commit is contained in:
@@ -51,7 +51,7 @@ public class BuildOutputConsumerImpl implements BuildOutputConsumer {
|
||||
for (File outputRoot : myOutputs) {
|
||||
String outputRootPath = FileUtil.toSystemIndependentName(outputRoot.getPath());
|
||||
final String relativePath = FileUtil.getRelativePath(outputRootPath, outputFilePath, '/');
|
||||
if (relativePath != null && !relativePath.startsWith("..")) {
|
||||
if (relativePath != null && !relativePath.startsWith("../")) {
|
||||
// the relative path must be under the root or equal to it
|
||||
myFileGeneratedEvent.add(outputRootPath, relativePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user