external build: use file separator in startsWith check

This commit is contained in:
Eugene Zhuravlev
2012-12-13 13:53:56 +01:00
parent 0f865f218d
commit 0897b22503
@@ -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);
}