servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r428285 - /incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java
Date Thu, 03 Aug 2006 08:45:26 GMT
Author: gnodet
Date: Thu Aug  3 01:45:25 2006
New Revision: 428285

URL: http://svn.apache.org/viewvc?rev=428285&view=rev
Log:
The assembly should contain the zip generated for SUs, not jars

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

Modified: incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java?rev=428285&r1=428284&r2=428285&view=diff
==============================================================================
--- incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java
(original)
+++ incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java
Thu Aug  3 01:45:25 2006
@@ -90,7 +90,9 @@
 				if ((project != null)
 						&& (project.getPackaging().equals("jbi-service-unit"))) {
 					try {
-						FileUtils.copyFileToDirectory(artifact.getFile(),
+                        String path = artifact.getFile().getAbsolutePath();
+                        path = path.substring(0, path.lastIndexOf('.')) + ".zip";
+						FileUtils.copyFileToDirectory(new File(path),
 								workDirectory);
 					} catch (IOException e) {
 						throw new JbiPluginException(e);



Mime
View raw message