org.apache.sling.maven.jspc
Class JspcMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.sling.maven.jspc.JspcMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.sling.scripting.jsp.jasper.Options

public class JspcMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.sling.scripting.jsp.jasper.Options

The JspcMojo is implements the Sling Maven JspC goal jspc compiling JSP into the target and creating a component descriptor for Declarative Services to use the JSP with the help of the appropriate adapter as component.


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JspcMojo()
           
 
Method Summary
 void execute()
           
 boolean genStringAsCharArray()
           
 Map<String,org.apache.sling.scripting.jsp.jasper.xmlparser.TreeNode> getCache()
           
 int getCheckInterval()
           
 boolean getClassDebugInfo()
           
 String getClassPath()
           
 String getCompiler()
           
 String getCompilerClassName()
           
 String getCompilerSourceVM()
           
 String getCompilerTargetVM()
           
 boolean getDevelopment()
           
 boolean getDisplaySourceFragment()
           
 boolean getErrorOnUseBeanInvalidClassAttribute()
           
 boolean getFork()
           
 String getIeClassId()
           
 String getJavaEncoding()
           
 ClassLoader getJspClassLoader()
           
 org.apache.sling.scripting.jsp.jasper.compiler.JspConfig getJspConfig()
           
 boolean getKeepGenerated()
           
 boolean getMappedFile()
           
 int getModificationTestInterval()
           
 String getScratchDir()
           
 boolean getSendErrorToClient()
           
 org.apache.sling.scripting.jsp.jasper.compiler.TagPluginManager getTagPluginManager()
           
 org.apache.sling.scripting.jsp.jasper.compiler.TldLocationsCache getTldLocationsCache()
           
 boolean getTrimSpaces()
           
 boolean isCaching()
           
 boolean isPoolingEnabled()
           
 boolean isSmapDumped()
           
 boolean isSmapSuppressed()
           
 boolean isXpoweredBy()
           
 void scanFiles(File base)
          Locate all jsp files in the webapp.
 
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
 

Constructor Detail

JspcMojo

public JspcMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException

scanFiles

public void scanFiles(File base)
Locate all jsp files in the webapp. Used if no explicit jsps are specified.


genStringAsCharArray

public boolean genStringAsCharArray()
Specified by:
genStringAsCharArray in interface org.apache.sling.scripting.jsp.jasper.Options

isCaching

public boolean isCaching()

getCache

public Map<String,org.apache.sling.scripting.jsp.jasper.xmlparser.TreeNode> getCache()

getCheckInterval

public int getCheckInterval()

getClassDebugInfo

public boolean getClassDebugInfo()
Specified by:
getClassDebugInfo in interface org.apache.sling.scripting.jsp.jasper.Options

getClassPath

public String getClassPath()
Specified by:
getClassPath in interface org.apache.sling.scripting.jsp.jasper.Options

getCompiler

public String getCompiler()
Specified by:
getCompiler in interface org.apache.sling.scripting.jsp.jasper.Options

getCompilerClassName

public String getCompilerClassName()
Specified by:
getCompilerClassName in interface org.apache.sling.scripting.jsp.jasper.Options

getCompilerSourceVM

public String getCompilerSourceVM()
Specified by:
getCompilerSourceVM in interface org.apache.sling.scripting.jsp.jasper.Options

getCompilerTargetVM

public String getCompilerTargetVM()
Specified by:
getCompilerTargetVM in interface org.apache.sling.scripting.jsp.jasper.Options

getDevelopment

public boolean getDevelopment()

getErrorOnUseBeanInvalidClassAttribute

public boolean getErrorOnUseBeanInvalidClassAttribute()
Specified by:
getErrorOnUseBeanInvalidClassAttribute in interface org.apache.sling.scripting.jsp.jasper.Options

getFork

public boolean getFork()
Specified by:
getFork in interface org.apache.sling.scripting.jsp.jasper.Options

getIeClassId

public String getIeClassId()
Specified by:
getIeClassId in interface org.apache.sling.scripting.jsp.jasper.Options

getJavaEncoding

public String getJavaEncoding()
Specified by:
getJavaEncoding in interface org.apache.sling.scripting.jsp.jasper.Options

getJspClassLoader

public ClassLoader getJspClassLoader()
Specified by:
getJspClassLoader in interface org.apache.sling.scripting.jsp.jasper.Options

getJspConfig

public org.apache.sling.scripting.jsp.jasper.compiler.JspConfig getJspConfig()
Specified by:
getJspConfig in interface org.apache.sling.scripting.jsp.jasper.Options

getKeepGenerated

public boolean getKeepGenerated()
Specified by:
getKeepGenerated in interface org.apache.sling.scripting.jsp.jasper.Options

getMappedFile

public boolean getMappedFile()
Specified by:
getMappedFile in interface org.apache.sling.scripting.jsp.jasper.Options

getModificationTestInterval

public int getModificationTestInterval()

getScratchDir

public String getScratchDir()
Specified by:
getScratchDir in interface org.apache.sling.scripting.jsp.jasper.Options

getSendErrorToClient

public boolean getSendErrorToClient()
Specified by:
getSendErrorToClient in interface org.apache.sling.scripting.jsp.jasper.Options

getTagPluginManager

public org.apache.sling.scripting.jsp.jasper.compiler.TagPluginManager getTagPluginManager()
Specified by:
getTagPluginManager in interface org.apache.sling.scripting.jsp.jasper.Options

getTldLocationsCache

public org.apache.sling.scripting.jsp.jasper.compiler.TldLocationsCache getTldLocationsCache()
Specified by:
getTldLocationsCache in interface org.apache.sling.scripting.jsp.jasper.Options

getTrimSpaces

public boolean getTrimSpaces()
Specified by:
getTrimSpaces in interface org.apache.sling.scripting.jsp.jasper.Options

isPoolingEnabled

public boolean isPoolingEnabled()
Specified by:
isPoolingEnabled in interface org.apache.sling.scripting.jsp.jasper.Options

isSmapDumped

public boolean isSmapDumped()
Specified by:
isSmapDumped in interface org.apache.sling.scripting.jsp.jasper.Options

isSmapSuppressed

public boolean isSmapSuppressed()
Specified by:
isSmapSuppressed in interface org.apache.sling.scripting.jsp.jasper.Options

isXpoweredBy

public boolean isXpoweredBy()
Specified by:
isXpoweredBy in interface org.apache.sling.scripting.jsp.jasper.Options

getDisplaySourceFragment

public boolean getDisplaySourceFragment()
Specified by:
getDisplaySourceFragment in interface org.apache.sling.scripting.jsp.jasper.Options


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.