Class DefaultJspCompilerAdapter
java.lang.Object
org.apache.tools.ant.taskdefs.optional.jsp.compilers.DefaultJspCompilerAdapter
- All Implemented Interfaces:
JspCompilerAdapter
- Direct Known Subclasses:
JasperC
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addArg
(CommandlineJava cmd, String argument) add a single argument to the argument list, if the value isn't nullprotected void
addArg
(CommandlineJava cmd, String argument, File file) add an argument tuple to the arg list, if the file parameter isn't nullprotected void
addArg
(CommandlineJava cmd, String argument, String value) add an argument tuple to the argument list, if the value isn't nullgetJspc()
get the ownerget our projectboolean
ask if compiler can sort out its own dependenciesprotected void
logAndAddFilesToCompile
(JspC jspc, Vector<String> compileList, CommandlineJava cmd) Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"void
set the ownerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.tools.ant.taskdefs.optional.jsp.compilers.JspCompilerAdapter
createMangler, execute
-
Field Details
-
owner
our owner
-
-
Constructor Details
-
DefaultJspCompilerAdapter
public DefaultJspCompilerAdapter()
-
-
Method Details
-
logAndAddFilesToCompile
Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"- Parameters:
jspc
- the compiler task for loggingcompileList
- the list of files to compilecmd
- the command line used
-
setJspc
set the owner- Specified by:
setJspc
in interfaceJspCompilerAdapter
- Parameters:
owner
- the owner JspC compiler
-
getJspc
-
addArg
add a single argument to the argument list, if the value isn't null- Parameters:
cmd
- the command lineargument
- The argument
-
addArg
add an argument tuple to the argument list, if the value isn't null- Parameters:
cmd
- the command lineargument
- The argumentvalue
- the parameter
-
addArg
add an argument tuple to the arg list, if the file parameter isn't null- Parameters:
cmd
- the command lineargument
- The argumentfile
- the parameter
-
implementsOwnDependencyChecking
public boolean implementsOwnDependencyChecking()ask if compiler can sort out its own dependencies- Specified by:
implementsOwnDependencyChecking
in interfaceJspCompilerAdapter
- Returns:
- true if the compiler wants to do its own depends
-
getProject
-