org.apache.maven.plugin.coreit
Class TouchMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.coreit.TouchMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class TouchMojo
extends AbstractMojo

Creates an empty file with a user-specified name. NOTE: This mojo requires online mode.

Author:
Benjamin Bentmann
Is defined by the goal name:
touch
Is bound to the specified phase of the standard build lifecycle:
validate
Requires to be online to run:
true

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
TouchMojo()
           
 
Method Summary
 void execute()
          Runs this mojo.
 
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
 

Constructor Detail

TouchMojo

public TouchMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException
Runs this mojo.

Throws:
MojoExecutionException - If the output file could not be created.


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.