|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.codehaus.mojo.javascript.CompileMojo
public class CompileMojo
Goal which assemble javascript sources into the packaging directory. An optional assembler descriptor can be set to configure scripts to be merged. Other scripts are simply copied to the output directory.
Field Summary | |
---|---|
protected AssemblerReaderManager |
assemblerReaderManager
|
protected static java.lang.String[] |
DEFAULT_INCLUDES
default includes pattern |
protected int |
depsCount
|
protected java.io.File |
depsDirectory
The folder where javascript dependencies are extracted and taken during assembling |
protected java.io.File |
descriptor
Descriptor for the strategy to assemble individual scripts sources into destination. |
protected java.lang.String |
descriptorFormat
Descriptor file format (default or jsbuilder) |
protected java.lang.String[] |
excludes
Exclusion pattern. |
protected java.lang.String[] |
includes
Inclusion pattern. |
protected JavascriptArtifactManager |
javascriptArtifactManager
|
protected java.io.File |
outputDirectory
The output directory of the assembled js file. |
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected java.io.File |
sourceDirectory
Location of the source files. |
protected boolean |
useArtifactId
For dependencies, if true, create a folder named by the artifactId while unpacking |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
CompileMojo()
|
Method Summary | |
---|---|
protected int |
appendScriptFile(java.io.File dir,
org.codehaus.plexus.util.DirectoryScanner scanner,
java.io.PrintWriter writer,
java.lang.String scriptInclude,
java.util.Set merged)
|
protected java.util.Set |
assemble()
Honor the assembly rules to build merged scripts from individual ones. |
protected java.util.Set |
assemble(Assembler assembler)
|
protected void |
copyUnmerged(java.util.Set merged)
|
void |
execute()
|
protected JavascriptArtifactManager |
getJavascriptArtifactManager()
|
protected org.apache.maven.project.MavenProject |
getProject()
|
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 |
---|
protected static final java.lang.String[] DEFAULT_INCLUDES
protected org.apache.maven.project.MavenProject project
protected java.io.File sourceDirectory
protected java.io.File outputDirectory
protected java.io.File depsDirectory
protected boolean useArtifactId
protected java.lang.String[] excludes
protected java.lang.String[] includes
protected AssemblerReaderManager assemblerReaderManager
protected java.io.File descriptor
protected java.lang.String descriptorFormat
protected JavascriptArtifactManager javascriptArtifactManager
protected int depsCount
Constructor Detail |
---|
public CompileMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void copyUnmerged(java.util.Set merged) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.util.Set assemble() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.util.Set assemble(Assembler assembler) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected int appendScriptFile(java.io.File dir, org.codehaus.plexus.util.DirectoryScanner scanner, java.io.PrintWriter writer, java.lang.String scriptInclude, java.util.Set merged) throws java.io.IOException
java.io.IOException
protected org.apache.maven.project.MavenProject getProject()
protected JavascriptArtifactManager getJavascriptArtifactManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |