use of org.apache.tools.ant.taskdefs.War in project ci.ant by WASdev.
the class CompileJSPs method updateSourceWar.
private void updateSourceWar(File jspCompileDir) {
// Finally need to merge the compiled jsps in
War warTask = new War();
warTask.setProject(getProject());
warTask.setDestFile(war);
warTask.setUpdate(true);
ZipFileSet jspFiles = new ZipFileSet();
// The JSPs will be in the a well known location. The
// app name from server.xml and the war file name will
// be
// in the path, the war name minus the .war extension
// (if present) will also be used.
jspFiles.setDir(jspCompileDir);
warTask.addClasses(jspFiles);
warTask.setTaskName(getTaskName());
warTask.execute();
}
Aggregations