equal
deleted
inserted
replaced
71 import javax.tools.StandardJavaFileManager; |
71 import javax.tools.StandardJavaFileManager; |
72 import javax.tools.StandardJavaFileManager.PathFactory; |
72 import javax.tools.StandardJavaFileManager.PathFactory; |
73 import javax.tools.StandardLocation; |
73 import javax.tools.StandardLocation; |
74 |
74 |
75 import com.sun.tools.javac.code.Lint; |
75 import com.sun.tools.javac.code.Lint; |
|
76 import com.sun.tools.javac.code.Lint.LintCategory; |
76 import com.sun.tools.javac.main.Option; |
77 import com.sun.tools.javac.main.Option; |
77 import com.sun.tools.javac.resources.CompilerProperties.Errors; |
78 import com.sun.tools.javac.resources.CompilerProperties.Errors; |
78 import com.sun.tools.javac.resources.CompilerProperties.Warnings; |
79 import com.sun.tools.javac.resources.CompilerProperties.Warnings; |
79 import com.sun.tools.javac.util.DefinedBy; |
80 import com.sun.tools.javac.util.DefinedBy; |
80 import com.sun.tools.javac.util.DefinedBy.Api; |
81 import com.sun.tools.javac.util.DefinedBy.Api; |
205 if (s.isEmpty()) { |
206 if (s.isEmpty()) { |
206 if (emptyPathDefault != null) { |
207 if (emptyPathDefault != null) { |
207 entries.add(emptyPathDefault); |
208 entries.add(emptyPathDefault); |
208 } |
209 } |
209 } else { |
210 } else { |
210 entries.add(getPath(s)); |
211 try { |
|
212 entries.add(getPath(s)); |
|
213 } catch (IllegalArgumentException e) { |
|
214 if (warn) { |
|
215 log.warning(LintCategory.PATH, "invalid.path", s); |
|
216 } |
|
217 } |
211 } |
218 } |
212 } |
219 } |
213 return entries; |
220 return entries; |
214 } |
221 } |
215 |
222 |