You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by br...@apache.org on 2005/09/16 14:33:52 UTC
svn commit: r289514 -
/maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java
Author: brett
Date: Fri Sep 16 05:33:49 2005
New Revision: 289514
URL: http://svn.apache.org/viewcvs?rev=289514&view=rev
Log:
reinstate exploded mode - recommend use from the command line only, add deprecation warning
Modified:
maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java
Modified: maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java?rev=289514&r1=289513&r2=289514&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java (original)
+++ maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java Fri Sep 16 05:33:49 2005
@@ -54,7 +54,7 @@
* The mode to use. Possible values are: war (default), inplace
* and exploded.
*
- * @parameter
+ * @parameter expression="${mode}"
*/
private String mode = "war";
@@ -317,7 +317,7 @@
// TODO: make a separate 'exploded' Mojo. For now,
// disable not making an artifact so the install phase
// doesn't fail.
- // if ( !"exploded".equals( mode ) )
+ if ( !"exploded".equals( mode ) )
{
//generate war file
getLog().info( "Generating war " + warFile.getAbsolutePath() );
@@ -338,6 +338,10 @@
archiver.createArchive( project, archive );
project.getArtifact().setFile( warFile );
+ }
+ else
+ {
+ getLog().warn( "Exploded mode will be deprecated in the next release. It is not compatible with install/deploy goals" );
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org