org.apache.tools.ant.taskdefs.optional.jsp.compilers
Class DefaultJspCompilerAdapter
java.lang.Object
org.apache.tools.ant.taskdefs.optional.jsp.compilers.DefaultJspCompilerAdapter
- JspCompilerAdapter
public abstract class DefaultJspCompilerAdapter
extends java.lang.Object
This is the default implementation for the JspCompilerAdapter interface.
This is currently very light on the ground since only one compiler type is
supported.
protected void | addArg(CommandlineJava cmd, String argument) - add an argument oneple to the argument list, if the value aint null
|
protected void | addArg(CommandlineJava cmd, String argument, File file) - add an argument tuple to the arg list, if the file parameter aint null
|
protected void | addArg(CommandlineJava cmd, String argument, String value) - add an argument tuple to the argument list, if the value aint null
|
JspC | getJspc() - get the owner
|
Project | getProject() - get our project
|
boolean | implementsOwnDependencyChecking() - ask if compiler can sort out its own dependencies
|
protected void | logAndAddFilesToCompile(JspC jspc, Vector compileList, CommandlineJava cmd) - Logs the compilation parameters, adds the files to compile and logs the
"niceSourceList"
|
void | setJspc(JspC owner) - set the owner
|
owner
protected JspC owner
our owner
addArg
protected void addArg(CommandlineJava cmd,
String argument)
add an argument oneple to the argument list, if the value aint null
cmd
- the command lineargument
- The argument
addArg
protected void addArg(CommandlineJava cmd,
String argument,
File file)
add an argument tuple to the arg list, if the file parameter aint null
cmd
- the command lineargument
- The argumentfile
- the parameter
addArg
protected void addArg(CommandlineJava cmd,
String argument,
String value)
add an argument tuple to the argument list, if the value aint null
cmd
- the command lineargument
- The argumentvalue
- the parameter
getJspc
public JspC getJspc()
get the owner
- the owner; should never be null
getProject
public Project getProject()
get our project
logAndAddFilesToCompile
protected void logAndAddFilesToCompile(JspC jspc,
Vector compileList,
CommandlineJava cmd)
Logs the compilation parameters, adds the files to compile and logs the
"niceSourceList"
jspc
- the compiler task for loggingcompileList
- the list of files to compilecmd
- the command line used