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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddArg(CommandlineJava cmd, String argument) add a single argument to the argument list, if the value isn't nullprotected voidaddArg(CommandlineJava cmd, String argument, File file) add an argument tuple to the arg list, if the file parameter isn't nullprotected voidaddArg(CommandlineJava cmd, String argument, String value) add an argument tuple to the argument list, if the value isn't nullgetJspc()get the ownerget our projectbooleanask if compiler can sort out its own dependenciesprotected voidlogAndAddFilesToCompile(JspC jspc, Vector<String> compileList, CommandlineJava cmd) Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"voidset the ownerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tools.ant.taskdefs.optional.jsp.compilers.JspCompilerAdaptercreateMangler, execute
- 
Field Details- 
ownerour owner
 
- 
- 
Constructor Details- 
DefaultJspCompilerAdapterpublic DefaultJspCompilerAdapter()
 
- 
- 
Method Details- 
logAndAddFilesToCompileLogs the compilation parameters, adds the files to compile and logs the "niceSourceList"- Parameters:
- jspc- the compiler task for logging
- compileList- the list of files to compile
- cmd- the command line used
 
- 
setJspcset the owner- Specified by:
- setJspcin interface- JspCompilerAdapter
- Parameters:
- owner- the owner JspC compiler
 
- 
getJspc
- 
addArgadd a single argument to the argument list, if the value isn't null- Parameters:
- cmd- the command line
- argument- The argument
 
- 
addArgadd an argument tuple to the argument list, if the value isn't null- Parameters:
- cmd- the command line
- argument- The argument
- value- the parameter
 
- 
addArgadd an argument tuple to the arg list, if the file parameter isn't null- Parameters:
- cmd- the command line
- argument- The argument
- file- the parameter
 
- 
implementsOwnDependencyCheckingpublic boolean implementsOwnDependencyChecking()ask if compiler can sort out its own dependencies- Specified by:
- implementsOwnDependencyCheckingin interface- JspCompilerAdapter
- Returns:
- true if the compiler wants to do its own depends
 
- 
getProject
 
-