String[] includedFrameworkFolderNames = getDirectoryScanner(getProject()).getIncludedDirectories();
for (String includedFrameworkFolderName : includedFrameworkFolderNames) {
String frameworkName = ExternalFolderFramework.frameworkNameForFolder(new File(includedFrameworkFolderName));
if (frameworkName != null) {
if (getDir() == null) {
IFramework framework = getFrameworkModel().getFrameworkWithName(frameworkName);
if (framework instanceof ExternalFolderFramework) {
frameworks.add((ExternalFolderFramework) framework);
}
}
else {
ExternalFolderFramework framework = new ExternalFolderFramework(getFrameworkRoot(), new File(getDir(), includedFrameworkFolderName));
frameworks.add(framework);
}
}
else {
System.out.println("FrameworkSet.getJarsPath: ILLEGAL FRAMEWORK NAMED " + frameworkName);
}
}
}
for (IFramework framework : frameworks) {
if (framework.getRoot() == null || framework.getRoot().equals(getFrameworkRoot())) {
for (FrameworkLibrary frameworkLibrary : framework.getFrameworkLibraries()) {
File jarFile = frameworkLibrary.getLibraryFile();
File deployedJarFile = getDeployedFile(jarFile);
//log(": Framework JAR " + jarFile, Project.MSG_VERBOSE);
frameworkPath.setLocation(deployedJarFile);
}