File target;
builder.build();
String name = builder.getBsn() + ".jar";
Jar jar = builder.getJar();
String path = builder.getProperty("-output");
if (path == null) {
target = new File(cwd, name);
} else {
target = new File(path);
if (!target.isAbsolute())
target = new File(cwd, path);
if (target.isDirectory()) {
target = new File(target, name);
}
}
target.delete();
if (builder.getErrors().size() > 0) {
activator.error(builder.getErrors());
} else {
jar.write(target);
File copy = activator.getCopy();
if (copy != null) {
copy = new File(copy, target.getName());
jar.write(copy);
}
if (builder.getWarnings().size() > 0) {
activator.warning(builder.getWarnings());
} else {
if (activator.getReportDone()) {