servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r428295 - /incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyDescriptorMojo.java
Date Thu, 03 Aug 2006 09:55:42 GMT
Author: gnodet
Date: Thu Aug  3 02:55:42 2006
New Revision: 428295

URL: http://svn.apache.org/viewvc?rev=428295&view=rev
Log:
Fix SA jbi descriptor which references SU as jars and not zips

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

Modified: incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyDescriptorMojo.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyDescriptorMojo.java?rev=428295&r1=428294&r2=428295&view=diff
==============================================================================
--- incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyDescriptorMojo.java
(original)
+++ incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyDescriptorMojo.java
Thu Aug  3 02:55:42 2006
@@ -174,7 +174,9 @@
 						&& (project.getPackaging().equals("jbi-service-unit"))) {
 					DependencyInformation info = new DependencyInformation();
 					info.setName(artifact.getArtifactId());
-					info.setFilename(artifact.getFile().getName());
+                    String name = artifact.getFile().getName();
+                    name = name.substring(0, name.lastIndexOf('.')) + ".zip";
+					info.setFilename(name);
 					info.setComponent(getComponentName(project, artifacts,
 							artifact));
 					info.setDescription(project.getDescription());



Mime
View raw message