Package org.apache.sling.maven.jspc
Class JspcMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- 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
@Mojo(name="jspc", defaultPhase=COMPILE, requiresDependencyResolution=COMPILE) public class JspcMojo extends org.apache.maven.plugin.AbstractMojo implements org.apache.sling.scripting.jsp.jasper.Options
TheJspcMojo
is implements the Sling Maven JspC goaljspc
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JspcMojo.FeatureDependency
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.execution.MavenSession
mavenSession
protected org.apache.maven.project.MavenProjectHelper
projectHelper
-
Constructor Summary
Constructors Constructor Description JspcMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
boolean
genStringAsCharArray()
boolean
getClassDebugInfo()
String
getCompiler()
String
getCompilerClassName()
String
getCompilerSourceVM()
String
getCompilerTargetVM()
boolean
getDisplaySourceFragment()
boolean
getErrorOnUseBeanInvalidClassAttribute()
boolean
getFork()
String
getIeClassId()
String
getJavaEncoding()
org.apache.sling.scripting.jsp.jasper.compiler.JspConfig
getJspConfig()
boolean
getKeepGenerated()
boolean
getMappedFile()
static org.apache.maven.artifact.Artifact
getOrResolveArtifact(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session, org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, org.apache.maven.artifact.resolver.ArtifactResolver resolver, org.apache.sling.feature.ArtifactId id)
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
isPoolingEnabled()
boolean
isSmapDumped()
boolean
isSmapSuppressed()
boolean
isXpoweredBy()
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
genStringAsCharArray
public boolean genStringAsCharArray()
- Specified by:
genStringAsCharArray
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getClassDebugInfo
public boolean getClassDebugInfo()
- Specified by:
getClassDebugInfo
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getCompiler
public String getCompiler()
- Specified by:
getCompiler
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getCompilerClassName
public String getCompilerClassName()
- Specified by:
getCompilerClassName
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getCompilerSourceVM
public String getCompilerSourceVM()
- Specified by:
getCompilerSourceVM
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getCompilerTargetVM
public String getCompilerTargetVM()
- Specified by:
getCompilerTargetVM
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getErrorOnUseBeanInvalidClassAttribute
public boolean getErrorOnUseBeanInvalidClassAttribute()
- Specified by:
getErrorOnUseBeanInvalidClassAttribute
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getFork
public boolean getFork()
- Specified by:
getFork
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getIeClassId
public String getIeClassId()
- Specified by:
getIeClassId
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getJavaEncoding
public String getJavaEncoding()
- Specified by:
getJavaEncoding
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getJspConfig
public org.apache.sling.scripting.jsp.jasper.compiler.JspConfig getJspConfig()
- Specified by:
getJspConfig
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getKeepGenerated
public boolean getKeepGenerated()
- Specified by:
getKeepGenerated
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getMappedFile
public boolean getMappedFile()
- Specified by:
getMappedFile
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getScratchDir
public String getScratchDir()
- Specified by:
getScratchDir
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getSendErrorToClient
public boolean getSendErrorToClient()
- Specified by:
getSendErrorToClient
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getTagPluginManager
public org.apache.sling.scripting.jsp.jasper.compiler.TagPluginManager getTagPluginManager()
- Specified by:
getTagPluginManager
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getTldLocationsCache
public org.apache.sling.scripting.jsp.jasper.compiler.TldLocationsCache getTldLocationsCache()
- Specified by:
getTldLocationsCache
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getTrimSpaces
public boolean getTrimSpaces()
- Specified by:
getTrimSpaces
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
isPoolingEnabled
public boolean isPoolingEnabled()
- Specified by:
isPoolingEnabled
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
isSmapDumped
public boolean isSmapDumped()
- Specified by:
isSmapDumped
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
isSmapSuppressed
public boolean isSmapSuppressed()
- Specified by:
isSmapSuppressed
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
isXpoweredBy
public boolean isXpoweredBy()
- Specified by:
isXpoweredBy
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getDisplaySourceFragment
public boolean getDisplaySourceFragment()
- Specified by:
getDisplaySourceFragment
in interfaceorg.apache.sling.scripting.jsp.jasper.Options
-
getOrResolveArtifact
public static org.apache.maven.artifact.Artifact getOrResolveArtifact(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session, org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, org.apache.maven.artifact.resolver.ArtifactResolver resolver, org.apache.sling.feature.ArtifactId id)
-
-