} else if (location.getComponentSourceDir() != null) {
File components = location.getComponentSourceDir();
if (!components.canRead() || !components.canExecute() || !components.isDirectory()) {
_log.error("Unable to find " + components + ", ignored.");
} else {
markupLoaders.add(new FileSourceLoader(components));
File javaBase = new File(components.getParent(), "java");
if (javaBase.exists()) {
javaLoaders.add(new FileSourceLoader(javaBase));
}
File generatedJavaBase = location.getJavaGeneratedSourceDir();
if (generatedJavaBase != null && generatedJavaBase.exists()) {
FileSourceLoader fsl = new FileSourceLoader(generatedJavaBase);
markupLoaders.add(fsl);
javaLoaders.add(fsl);
}
try {
canonical = components.getCanonicalPath();