geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r433432 - /geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/PackageMojo.java
Date Tue, 22 Aug 2006 00:00:02 GMT
Author: jdillon
Date: Mon Aug 21 17:00:02 2006
New Revision: 433432

URL: http://svn.apache.org/viewvc?rev=433432&view=rev
Log:
Only include the classes dir if it actually exists

Modified:
    geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/PackageMojo.java

Modified: geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/PackageMojo.java
URL: http://svn.apache.org/viewvc/geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/PackageMojo.java?rev=433432&r1=433431&r2=433432&view=diff
==============================================================================
--- geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/PackageMojo.java
(original)
+++ geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/PackageMojo.java
Mon Aug 21 17:00:02 2006
@@ -296,8 +296,10 @@
             archiver.getArchiver().addDirectory(getArtifactInRepositoryDir());
 
             // Include the optional classes.resources
-            archiver.getArchiver().addDirectory(classesDirectory);
-
+            if (classesDirectory.isDirectory()) {
+                archiver.getArchiver().addDirectory(classesDirectory);
+            }
+            
             if (classpath != null) {
                 archive.addManifestEntry("Class-Path", getClassPath());
             }



Mime
View raw message