org.codehaus.mojo.javascript
Class CompileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.javascript.AbstractJavascriptMojo
          extended by 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

Field Summary
protected  AssemblerReaderManager assemblerReaderManager
           
 
Fields inherited from class org.codehaus.mojo.javascript.AbstractJavascriptMojo
javascriptArtifactManager, pluginArtifactMap, project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CompileMojo()
           
 
Method Summary
protected  java.util.Set assemble()
          Honor the assembly rules to build merged scripts from individual ones.
 void execute()
           
abstract  java.lang.String[] getDefaultIncludes()
           
abstract  java.io.File getDescriptor()
           
abstract  java.lang.String getDescriptorFormat()
           
abstract  java.lang.String[] getExcludes()
           
abstract  java.lang.String[] getIncludes()
           
abstract  java.io.File getOutputDirectory()
           
abstract  java.io.File getSourceDirectory()
           
 
Methods inherited from class org.codehaus.mojo.javascript.AbstractJavascriptMojo
unpackJavascriptDependency, unpackJavascriptDependency
 
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

assemblerReaderManager

protected AssemblerReaderManager assemblerReaderManager
Constructor Detail

CompileMojo

public CompileMojo()
Method Detail

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.