copyFile(vanillaSDKSrcLibDirPath.get(0), vanillaSDKTgtLibDirPath);
List<SourceFile> inputs = new ArrayList<SourceFile>();
Collection<File> files = org.apache.commons.io.FileUtils.listFiles(
new File(intermediateDirPath),
new RegexFileFilter("^.*(\\.js)"),
DirectoryFileFilter.DIRECTORY);
for (File file : files)
{
inputs.add(SourceFile.fromFile(file));
}
copyFile(closureGoogSrcLibDirPath, closureGoogTgtLibDirPath);
copyFile(closureTPSrcLibDirPath, closureTPTgtLibDirPath);
File srcDeps = new File(depsSrcFilePath);
final List<SourceFile> deps = new ArrayList<SourceFile>();
deps.add(SourceFile.fromFile(srcDeps));
ErrorManager errorManager = new JSGoogErrorManager();
DepsGenerator depsGenerator = new DepsGenerator(deps, inputs,
InclusionStrategy.ALWAYS, closureGoogTgtLibDirPath,
errorManager);
writeFile(depsTgtFilePath, depsGenerator.computeDependencyCalls(),
false);
org.apache.commons.io.FileUtils.deleteQuietly(srcDeps);
org.apache.commons.io.FileUtils.moveFile(new File(depsTgtFilePath),
srcDeps);
writeHTML("intermediate", projectName, intermediateDirPath);
writeHTML("release", projectName, releaseDirPath);
ArrayList<String> optionList = new ArrayList<String>();
files = org.apache.commons.io.FileUtils.listFiles(new File(
intermediateDirPath), new RegexFileFilter("^.*(\\.js)"),
DirectoryFileFilter.DIRECTORY);
for (File file : files)
{
optionList.add("--js=" + file.getCanonicalPath());
}