org.apache.maven.plugin.coreit
Class TouchMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
void |
execute()
Runs this mojo. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TouchMojo
public TouchMojo()
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.