8015145: Smartjavac needs more flexibility with linking to sources

Reviewed-by: jjg, ohrstrom
This commit is contained in:
Erik Joelsson 2013-08-15 17:24:35 +02:00
parent 0c6e63367d
commit fd4983b254
3 changed files with 49 additions and 9 deletions

View file

@ -808,7 +808,10 @@ public class JavacState
// Create a set of filenames with full paths.
for (Source s : now.sources().values()) {
calculatedSources.add(s.file().getPath());
// Don't include link only sources when comparing sources to compile
if (!s.isLinkedOnly()) {
calculatedSources.add(s.file().getPath());
}
}
// Read in the file and create another set of filenames with full paths.
try {