com.sun.tools.sjavac.ProblemException Java Examples

The following examples show how to use com.sun.tools.sjavac.ProblemException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SourceLocation.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Finds all files with the given suffix that pass the include / exclude
 * filters in this source location.
 *
 * @param suffixes The set of suffixes to search for
 * @param foundFiles The map in which to store the found files
 * @param foundModules The map in which to store the found modules
 * @param currentModule The current module
 * @param permitSourcesInDefaultPackage true if sources in default package
 *                                      are to be permitted
 * @param inLinksrc true if in link source
 */
public void findSourceFiles(Set<String> suffixes,
                            Map<String, Source> foundFiles,
                            Map<String, Module> foundModules,
                            Module currentModule,
                            boolean permitSourcesInDefaultPackage,
                            boolean inLinksrc)
                                    throws IOException {
    try {
        Source.scanRoot(path.toFile(),
                        suffixes,
                        excludes,
                        includes,
                        foundFiles,
                        foundModules,
                        currentModule,
                        permitSourcesInDefaultPackage,
                        false,
                        inLinksrc);
    } catch (ProblemException e) {
        e.printStackTrace();
    }
}