Search in sources :

Example 1 with War

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();
}
Also used : War(org.apache.tools.ant.taskdefs.War) ZipFileSet(org.apache.tools.ant.types.ZipFileSet)

Aggregations

War (org.apache.tools.ant.taskdefs.War)1 ZipFileSet (org.apache.tools.ant.types.ZipFileSet)1