org.codehaus.mojo.jspc
Class AbstractJspcMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.jspc.AbstractJspcMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
JspcMojo, TestJspcMojo

public abstract class AbstractJspcMojo
extends org.apache.maven.plugin.AbstractMojo


Field Summary
protected  java.lang.String injectString
          The string to look for in the web.xml to replace with the web fragment contents.
protected  java.lang.String inputWebXml
          The path and location of the original web.xml file
protected  java.lang.String javaEncoding
          Character encoding
protected  boolean listErrors
          List Errors option for JcpC.
protected  java.lang.String outputWebXml
          The final path and file name of the web.xml.
protected  java.lang.String packageName
          The package in which the jsp files will be contained.
protected  boolean setCompile
          Sets if you want to compile the jsp classes
protected  boolean setSmapDumped
          Set Smap Dumped option for JcpC.
protected  boolean setSmapSupressed
          Set Smap Supressed option for JcpC.
protected  boolean showSuccess
          Show Success option for JcpC.
protected  java.lang.String source
          Provide source compatibility with specified release
protected  java.lang.String target
          Generate class files for specific VM version
protected  boolean validateXml
          Validate XML option for JcpC.
protected  boolean verbose
          Verbose option for JcpC.
protected  java.lang.String warSourceDirectory
          Source directory of the web source.
protected  java.lang.String webFragmentFile
          The path and location to the web fragment file.
protected  java.lang.String workingDirectory
          The working directory to create the generated java source files.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractJspcMojo()
           
 
Method Summary
 void execute()
           
protected abstract  java.util.List getClasspathElements()
           
 java.lang.String getPathString(java.util.List pathElements)
           
protected  void moveClassFiles()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaEncoding

protected java.lang.String javaEncoding
Character encoding


source

protected java.lang.String source
Provide source compatibility with specified release


target

protected java.lang.String target
Generate class files for specific VM version


workingDirectory

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


setCompile

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


webFragmentFile

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


warSourceDirectory

protected java.lang.String warSourceDirectory
Source directory of the web source.


inputWebXml

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


injectString

protected java.lang.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 .


outputWebXml

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


packageName

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


verbose

protected boolean verbose
Verbose option for JcpC.


showSuccess

protected boolean showSuccess
Show Success option for JcpC.


setSmapDumped

protected boolean setSmapDumped
Set Smap Dumped option for JcpC.


setSmapSupressed

protected boolean setSmapSupressed
Set Smap Supressed option for JcpC.


listErrors

protected boolean listErrors
List Errors option for JcpC.


validateXml

protected boolean validateXml
Validate XML option for JcpC.

Constructor Detail

AbstractJspcMojo

public AbstractJspcMojo()
Method Detail

getClasspathElements

protected abstract java.util.List getClasspathElements()

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getPathString

public java.lang.String getPathString(java.util.List pathElements)

moveClassFiles

protected void moveClassFiles()


Copyright © {inceptionYear}-2008 null. All Rights Reserved.