/** * Validate all of the ANE files are on the external library path. * * @param project the project being configured. * @param externalLibraryFiles the external library path. * @return true if successful, false if there is an error. */ private boolean validateNoANEFiles(IRoyaleProject project, List<File>externalLibraryFiles) { // Get all the library files in the project. List<ISWC> libraries = project.getLibraries(); for (ISWC library : libraries) { if (library.isANE()) { // must be on the external library path if (!isOnExternalLibrayPath(library, externalLibraryFiles)) { configurationProblems.add( new ANELibraryNotAllowedProblem( library.getSWCFile().getAbsolutePath())); return false; } } } return true; }
/** * Validate all of the ANE files are on the external library path. * * @param project the project being configured. * @param externalLibraryFiles the external library path. * @return true if successful, false if there is an error. */ private boolean validateNoANEFiles(IRoyaleProject project, List<File>externalLibraryFiles) { // Get all the library files in the project. List<ISWC> libraries = project.getLibraries(); for (ISWC library : libraries) { if (library.isANE()) { // must be on the external library path if (!isOnExternalLibrayPath(library, externalLibraryFiles)) { configurationProblems.add( new ANELibraryNotAllowedProblem( library.getSWCFile().getAbsolutePath())); return false; } } } return true; }