org.apache.tools.ant.taskdefs.optional.jsp.compilers

Class DefaultJspCompilerAdapter

public abstract class DefaultJspCompilerAdapter extends Object implements JspCompilerAdapter

This is the default implementation for the JspCompilerAdapter interface. This is currently very light on the ground since only one compiler type is supported.
Field Summary
protected JspCowner
our owner
Method Summary
protected voidaddArg(CommandlineJava cmd, String argument)
add an argument oneple to the argument list, if the value aint null
protected voidaddArg(CommandlineJava cmd, String argument, String value)
add an argument tuple to the argument list, if the value aint null
protected voidaddArg(CommandlineJava cmd, String argument, File file)
add an argument tuple to the arg list, if the file parameter aint null
JspCgetJspc()
get the owner
ProjectgetProject()
get our project
booleanimplementsOwnDependencyChecking()
ask if compiler can sort out its own dependencies
protected voidlogAndAddFilesToCompile(JspC jspc, Vector compileList, CommandlineJava cmd)
Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"
voidsetJspc(JspC owner)
set the owner

Field Detail

owner

protected JspC owner
our owner

Method Detail

addArg

protected void addArg(CommandlineJava cmd, String argument)
add an argument oneple to the argument list, if the value aint null

Parameters: argument The argument

addArg

protected void addArg(CommandlineJava cmd, String argument, String value)
add an argument tuple to the argument list, if the value aint null

Parameters: argument The argument value the parameter

addArg

protected void addArg(CommandlineJava cmd, String argument, File file)
add an argument tuple to the arg list, if the file parameter aint null

Parameters: argument The argument file the parameter

getJspc

public JspC getJspc()
get the owner

Returns: the owner; should never be null

getProject

public Project getProject()
get our project

Returns: owner project data

implementsOwnDependencyChecking

public boolean implementsOwnDependencyChecking()
ask if compiler can sort out its own dependencies

Returns: true if the compiler wants to do its own depends

logAndAddFilesToCompile

protected void logAndAddFilesToCompile(JspC jspc, Vector compileList, CommandlineJava cmd)
Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"

setJspc

public void setJspc(JspC owner)
set the owner
Copyright