Search in sources :

Example 1 with JspC

use of org.apache.tools.ant.taskdefs.optional.jsp.JspC in project ant by apache.

the class JasperC method setupJasperCommand.

/**
 * build up a command line
 * @return a command line for jasper
 */
private CommandlineJava setupJasperCommand() {
    CommandlineJava cmd = new CommandlineJava();
    JspC jspc = getJspc();
    addArg(cmd, "-d", jspc.getDestdir());
    addArg(cmd, "-p", jspc.getPackage());
    if (!isTomcat5x()) {
        addArg(cmd, "-v" + jspc.getVerbose());
    } else {
        getProject().log("this task doesn't support Tomcat 5.x properly, " + "please use the Tomcat provided jspc task " + "instead");
    }
    addArg(cmd, "-uriroot", jspc.getUriroot());
    addArg(cmd, "-uribase", jspc.getUribase());
    addArg(cmd, "-ieplugin", jspc.getIeplugin());
    addArg(cmd, "-webinc", jspc.getWebinc());
    addArg(cmd, "-webxml", jspc.getWebxml());
    addArg(cmd, "-die9");
    if (jspc.isMapped()) {
        addArg(cmd, "-mapped");
    }
    if (jspc.getWebApp() != null) {
        File dir = jspc.getWebApp().getDirectory();
        addArg(cmd, "-webapp", dir);
    }
    logAndAddFilesToCompile(getJspc(), getJspc().getCompileList(), cmd);
    return cmd;
}
Also used : CommandlineJava(org.apache.tools.ant.types.CommandlineJava) File(java.io.File) JspC(org.apache.tools.ant.taskdefs.optional.jsp.JspC)

Aggregations

File (java.io.File)1 JspC (org.apache.tools.ant.taskdefs.optional.jsp.JspC)1 CommandlineJava (org.apache.tools.ant.types.CommandlineJava)1