result.add(dependencyType, mainBuildDir);
}
result.addAll(dependencyType, subDependencies);
}
else if (dependency instanceof ExternalDependency) {
ExternalDependency externalDep = (ExternalDependency)dependency;
result.add(dependencyType, externalDep.getFile());
}
else {
LOGGER.log(Level.WARNING, "Unknown dependency: {0}", dependency);
}
}