On 31 October 2013 08:01, <[email protected]> wrote: > Author: tchemit > Date: Wed Oct 30 21:01:01 2013 > New Revision: 1537302 > > URL: http://svn.apache.org/r1537302 > Log: > MRAR-34 - provide skip parameter for the plugin > > Modified: > > maven/plugins/trunk/maven-rar-plugin/src/main/java/org/apache/maven/plugin/rar/RarMojo.java > > Modified: > maven/plugins/trunk/maven-rar-plugin/src/main/java/org/apache/maven/plugin/rar/RarMojo.java > URL: > http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/main/java/org/apache/maven/plugin/rar/RarMojo.java?rev=1537302&r1=1537301&r2=1537302&view=diff > ============================================================================== > --- > maven/plugins/trunk/maven-rar-plugin/src/main/java/org/apache/maven/plugin/rar/RarMojo.java > (original) > +++ > maven/plugins/trunk/maven-rar-plugin/src/main/java/org/apache/maven/plugin/rar/RarMojo.java > Wed Oct 30 21:01:01 2013 > @@ -265,12 +265,26 @@ public class RarMojo > @Parameter( property = "warnOnMissingRaXml", defaultValue = "true" ) > protected boolean warnOnMissingRaXml = true; > > + /** > + * To skip execution of the rar mojo. > + * > + * @since 2.4 > + */ > + @Parameter( property = "maven.rar.skip" ) > + private boolean skip; > + > private File buildDir; > > > public void execute() > throws MojoExecutionException > { > + > + if ( skip ) > + { > + getLog().info( "Skipping rar generation." ); > + } > +
really skipping? :-) > getLog().debug( " ======= RarMojo settings =======" ); > getLog().debug( "rarSourceDirectory[" + rarSourceDirectory + "]" ); > getLog().debug( "manifestFile[" + manifestFile + "]" ); > > -- Olivier Lamy Ecetera: http://ecetera.com.au http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
