cn.dreampie
类 CoffeeScriptMojo

java.lang.Object
  继承者 org.apache.maven.plugin.AbstractMojo
      继承者 cn.dreampie.CoffeeScriptMojo
所有已实现的接口:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="compile",
      threadSafe=true,
      defaultPhase=GENERATE_RESOURCES)
public class CoffeeScriptMojo
extends org.apache.maven.plugin.AbstractMojo

Created by ice on 14-11-17. author Dreampie phase generate-resources goal compile


字段摘要
protected  org.sonatype.plexus.build.incremental.BuildContext buildContext
          component
protected  String[] excludes
          List of files to exclude.
protected  String[] includes
          List of files to include.
protected  File outputDirectory
          The directory for compiled javascript.
protected  boolean skip
          Whether to skip plugin execution.
protected  File sourceDirectory
          The source directory containing the coffee sources.
protected  boolean watch
          When true the plugin will watch for changes in coffee files and compile if it detects one.
 
从接口 org.apache.maven.plugin.Mojo 继承的字段
ROLE
 
构造方法摘要
CoffeeScriptMojo()
           
 
方法摘要
 void execute()
           
 
从类 org.apache.maven.plugin.AbstractMojo 继承的方法
getLog, getPluginContext, setLog, setPluginContext
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

buildContext

@Component
protected org.sonatype.plexus.build.incremental.BuildContext buildContext
component


sourceDirectory

@Parameter(defaultValue="${project.basedir}/src/main/coffeescript")
protected File sourceDirectory
The source directory containing the coffee sources.


includes

@Parameter
protected String[] includes
List of files to include. Specified as fileset patterns which are relative to the source directory. Default value is: { "**\/*.coffee" }


excludes

@Parameter
protected String[] excludes
List of files to exclude. Specified as fileset patterns which are relative to the source directory.


skip

@Parameter(defaultValue="false")
protected boolean skip
Whether to skip plugin execution. This makes the build more controllable from profiles.


outputDirectory

@Parameter(defaultValue="${project.build.directory}/javascript",
           required=true)
protected File outputDirectory
The directory for compiled javascript.


watch

@Parameter(defaultValue="false")
protected boolean watch
When true the plugin will watch for changes in coffee files and compile if it detects one.

构造方法详细信息

CoffeeScriptMojo

public CoffeeScriptMojo()
方法详细信息

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
抛出:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException


Copyright © 2014. All rights reserved.