servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r792367 - /servicemix/maven-plugins/jbi-maven-plugin/trunk/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java
Date Thu, 09 Jul 2009 01:06:36 GMT
Author: ffang
Date: Thu Jul  9 01:06:36 2009
New Revision: 792367

URL: http://svn.apache.org/viewvc?rev=792367&view=rev
Log:
[SM-1873]GenerateServiceAssemblyMojo doesn't include any files created by a build such as
resources

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

Modified: servicemix/maven-plugins/jbi-maven-plugin/trunk/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java
URL: http://svn.apache.org/viewvc/servicemix/maven-plugins/jbi-maven-plugin/trunk/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java?rev=792367&r1=792366&r2=792367&view=diff
==============================================================================
--- servicemix/maven-plugins/jbi-maven-plugin/trunk/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java
(original)
+++ servicemix/maven-plugins/jbi-maven-plugin/trunk/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyMojo.java
Thu Jul  9 01:06:36 2009
@@ -37,7 +37,7 @@
 
 /**
  * A Mojo used to build the jbi service assembly zip file
- * 
+ *
  * @author <a href="pdodds@apache.org">Philip Dodds</a>
  * @version $Id: GenerateApplicationXmlMojo.java 314956 2005-10-12 16:27:15Z
  *          brett $
@@ -98,6 +98,11 @@
             archiver.setArchiver(jarArchiver);
             archiver.setOutputFile(installerFile);
             jarArchiver.addConfiguredManifest(createManifest());
+
+            File classesDir = new File(getProject().getBuild().getOutputDirectory());
+            if ( classesDir.exists() )
+                jarArchiver.addDirectory(classesDir, null, DirectoryScanner.DEFAULTEXCLUDES);
+
             jarArchiver.addDirectory(workDirectory, null, DirectoryScanner.DEFAULTEXCLUDES);
             archiver.createArchive(getProject(), archive);
 



Mime
View raw message