final File archiveSource = new File(basedir, includedFiles[index]);
config.setSource(archiveSource);
config.setDestination(getDestdir());
this.log("Assembling '" + archiveSource + "' to '" + getDestdir() + "'");
Assembler assembler = AssemblerFactory.getFactory().createAssembler(config);
assembler.assemble(config);
}
}
}
else {
AssemblerConfig config = new AssemblerConfig();
final File archiveSource = getArchive();
if (archiveSource != null) {
config.setSource(archiveSource);
config.setDestination(getDestdir());
this.log("Assembling '" + archiveSource + "' to '" + getDestdir() + "'");
}
else {
config.setPortletDescriptor(getPortletxml());
config.setWebappDescriptor(getWebxml());
config.setDestination(getDestfile());
this.log("Assembling '" + getWebxml() + "' to '" + getDestfile() + "'");
}
Assembler assembler = AssemblerFactory.getFactory().createAssembler(config);
assembler.assemble(config);
}
}
catch(UtilityException ue) {
throw new BuildException(ue);