org.apache.myfaces.buildtools.maven2.plugin.javascript.jmt
Class CompileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.jmt.CompileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
WarPackageMojo

public class CompileMojo
extends org.apache.maven.plugin.AbstractMojo

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  File outputDirectory
          The output directory of the assembled js file.
protected  File sourceDirectory
          Location of the source files.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CompileMojo()
           
 
Method Summary
protected  Set assemble()
          Honor the assembly rules to build merged scripts from individual ones.
 void execute()
           
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

sourceDirectory

protected File sourceDirectory
Location of the source files.


outputDirectory

protected File outputDirectory
The output directory of the assembled js file.

Constructor Detail

CompileMojo

public CompileMojo()
Method Detail

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 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

getProject

protected org.apache.maven.project.MavenProject getProject()
Returns:
the project


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