Mercurial > hg > graal-compiler
comparison src/share/tools/ProjectCreator/FileTreeCreatorVC10.java @ 8266:482037339440
ProjectCreator: compare relative path against flavour.
Fixes random build failures when the repository path contains "graal".
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Wed, 13 Mar 2013 23:28:57 +0100 |
parents | 1a9b9cfcef41 |
children | 3cce976666d9 |
comparison
equal
deleted
inserted
replaced
8265:ded5288f5b96 | 8266:482037339440 |
---|---|
48 cfg.collectRelevantVectors(rv, "AdditionalFile"); | 48 cfg.collectRelevantVectors(rv, "AdditionalFile"); |
49 for(String addFile : rv) { | 49 for(String addFile : rv) { |
50 if (addFile.equals(fileName)) { | 50 if (addFile.equals(fileName)) { |
51 // supress any ignore | 51 // supress any ignore |
52 // TODO - may need some adjustments | 52 // TODO - may need some adjustments |
53 if (file.toAbsolutePath().toString().contains(cfg.get("Flavour"))) { | 53 String relativePath = startDir.toUri().relativize(file.toUri()).getPath(); |
54 if (relativePath.contains(cfg.get("Flavour"))) { | |
54 currentFileAttr.removeFromIgnored(cfg); | 55 currentFileAttr.removeFromIgnored(cfg); |
55 } | 56 } |
56 } | 57 } |
57 } | 58 } |
58 } | 59 } |