servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r534463 - /incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateComponentMojo.java
Date Wed, 02 May 2007 13:58:16 GMT
Author: gnodet
Date: Wed May  2 06:58:16 2007
New Revision: 534463

URL: http://svn.apache.org/viewvc?view=rev&rev=534463
Log:
SM-891: Maven plugin should use finalName

Modified:
    incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateComponentMojo.java

Modified: incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateComponentMojo.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateComponentMojo.java?view=diff&rev=534463&r1=534462&r2=534463
==============================================================================
--- incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateComponentMojo.java
(original)
+++ incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateComponentMojo.java
Wed May  2 06:58:16 2007
@@ -61,7 +61,15 @@
 	/**
 	 * The name of the generated war.
 	 * 
-	 * @parameter expression="${project.artifactId}-${project.version}-installer.zip"
+	 * @parameter expression="${project.build.finalName}"
+	 * @required
+	 */
+	private String finalName;
+
+	/**
+	 * The name of the generated war.
+	 * 
+	 * @parameter expression="${project.build.finalName}-installer.zip"
 	 * @required
 	 */
 	private String installerName;
@@ -153,9 +161,7 @@
 			}
 		}
 
-		File projectArtifact = new File(outputDirectory, project
-				.getArtifactId()
-				+ "-" + project.getVersion() + ".jar");
+		File projectArtifact = new File(outputDirectory, finalName + ".jar");
 		try {
 			FileUtils.copyFileToDirectory(projectArtifact, new File(
 					workDirectory, LIB_DIRECTORY));



Mime
View raw message