org.codehaus.mojo.javascript
Class CompileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.javascript.AbstractJavascriptMojo
org.codehaus.mojo.javascript.CompileMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- CompileSourceMojo, PrepareTestsMojo
public abstract class CompileMojo
- extends AbstractJavascriptMojo
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.
- Author:
- Nicolas De Loof
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
assemblerReaderManager
protected AssemblerReaderManager assemblerReaderManager
CompileMojo
public CompileMojo()
getDescriptor
public abstract java.io.File getDescriptor()
getDescriptorFormat
public abstract java.lang.String getDescriptorFormat()
getOutputDirectory
public abstract java.io.File getOutputDirectory()
getSourceDirectory
public abstract java.io.File getSourceDirectory()
getDefaultIncludes
public abstract java.lang.String[] getDefaultIncludes()
getIncludes
public abstract java.lang.String[] getIncludes()
getExcludes
public abstract java.lang.String[] getExcludes()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
assemble
protected java.util.Set assemble()
throws org.apache.maven.plugin.MojoExecutionException
- Honor the assembly rules to build merged scripts from individual ones.
- Returns:
- a set of all script merged, to be skiped from the target
directory.
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2010. All Rights Reserved.