org.codehaus.mojo.jspc

Class AbstractJspcMojo

public abstract class AbstractJspcMojo extends AbstractMojo

Author: Jeff Genender Grzegorz Slowikowski

Field Summary
protected StringinjectString
The string to look for in the web.xml to replace with the web fragment contents.
protected StringinputWebXml
The path and location of the original web.xml file
protected StringjavaEncoding
Character encoding
protected booleanlistErrors
List Errors option for JcpC.
protected StringoutputWebXml
The final path and file name of the web.xml.
protected StringpackageName
The package in which the jsp files will be contained.
protected booleansetCompile
Sets if you want to compile the jsp classes
protected booleansetSmapDumped
Set Smap Dumped option for JcpC.
protected booleansetSmapSupressed
Set Smap Supressed option for JcpC.
protected booleanshowSuccess
Show Success option for JcpC.
protected Stringsource
Provide source compatibility with specified release
protected Stringtarget
Generate class files for specific VM version
protected booleanvalidateXml
Validate XML option for JcpC.
protected booleanverbose
Verbose option for JcpC.
protected StringwarSourceDirectory
Source directory of the web source.
protected StringwebFragmentFile
The path and location to the web fragment file.
protected StringworkingDirectory
The working directory to create the generated java source files.
Method Summary
voidexecute()
protected abstract ListgetClasspathElements()
StringgetPathString(List pathElements)
protected voidmoveClassFiles()

Field Detail

injectString

protected String injectString
The string to look for in the web.xml to replace with the web fragment contents. If not defined, fragment will be appended before the tag which is fine for srvlet 2.4 and greater. If using this parameter its recommanded to use Strings such as <!-- [INSERT FRAGMENT HERE] -->. Be aware the < and > are for your pom verbatim. In your web.xml, you will use < and >. Therefore your web.xml would contain .

UNKNOWN:

inputWebXml

protected String inputWebXml
The path and location of the original web.xml file

UNKNOWN: expression="${basedir}/src/main/webapp/WEB-INF/web.xml"

javaEncoding

protected String javaEncoding
Character encoding

UNKNOWN:

listErrors

protected boolean listErrors
List Errors option for JcpC.

UNKNOWN: default-value="true"

outputWebXml

protected String outputWebXml
The final path and file name of the web.xml.

UNKNOWN: expression="${project.build.directory}/jspweb.xml"

packageName

protected String packageName
The package in which the jsp files will be contained.

UNKNOWN: default-value="jsp"

setCompile

protected boolean setCompile
Sets if you want to compile the jsp classes

UNKNOWN: default-value="true"

setSmapDumped

protected boolean setSmapDumped
Set Smap Dumped option for JcpC.

UNKNOWN: default-value="false"

setSmapSupressed

protected boolean setSmapSupressed
Set Smap Supressed option for JcpC.

UNKNOWN: default-value="false"

showSuccess

protected boolean showSuccess
Show Success option for JcpC.

UNKNOWN: default-value="true"

source

protected String source
Provide source compatibility with specified release

UNKNOWN:

target

protected String target
Generate class files for specific VM version

UNKNOWN:

validateXml

protected boolean validateXml
Validate XML option for JcpC.

UNKNOWN: default-value="false"

verbose

protected boolean verbose
Verbose option for JcpC.

UNKNOWN: default-value="false"

warSourceDirectory

protected String warSourceDirectory
Source directory of the web source.

UNKNOWN: expression="${basedir}/src/main/webapp"

webFragmentFile

protected String webFragmentFile
The path and location to the web fragment file.

UNKNOWN: expression="${project.build.directory}/web-fragment.xml"

workingDirectory

protected String workingDirectory
The working directory to create the generated java source files.

UNKNOWN: expression="${project.build.directory}/jsp-source"

Method Detail

execute

public void execute()

getClasspathElements

protected abstract List getClasspathElements()

getPathString

public String getPathString(List pathElements)

moveClassFiles

protected void moveClassFiles()
Copyright © {inceptionYear}-2007 null. All Rights Reserved.