You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ge...@apache.org on 2011/02/21 09:08:59 UTC

svn commit: r1072876 - in /geronimo/server/trunk: framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java pom.xml

Author: genspring
Date: Mon Feb 21 08:08:59 2011
New Revision: 1072876

URL: http://svn.apache.org/viewvc?rev=1072876&view=rev
Log:
GERONIMO-5825 Provide a option to prevent tar assemblies from generating.

Modified:
    geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java
    geronimo/server/trunk/pom.xml

Modified: geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java?rev=1072876&r1=1072875&r2=1072876&view=diff
==============================================================================
--- geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java (original)
+++ geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java Mon Feb 21 08:08:59 2011
@@ -62,6 +62,12 @@ public class ArchiveMojo extends Abstrac
      * @parameter
      */
     private String[] excludes;
+    
+    /**
+     * whether to create tar.gz archive
+     * @parameter expression="${tarAssemblies}" default-value="true"
+     */
+    private boolean tarAssemblies;
 
     /**
      * The target file to set as the project's artifact.
@@ -85,7 +91,9 @@ public class ArchiveMojo extends Abstrac
                     archiver.addExclude(exclude);
                 }
             }
-            archive("tar.gz", archiver);
+            if(tarAssemblies){
+                archive("tar.gz", archiver);
+            }
             archive("zip", archiver);
         } catch (Exception e) {
             throw new MojoExecutionException("Could not archive plugin", e);

Modified: geronimo/server/trunk/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/pom.xml?rev=1072876&r1=1072875&r2=1072876&view=diff
==============================================================================
--- geronimo/server/trunk/pom.xml (original)
+++ geronimo/server/trunk/pom.xml Mon Feb 21 08:08:59 2011
@@ -2427,6 +2427,14 @@ only found in cxf
                 <module>testsuite</module>
             </modules>
         </profile>
+        
+        <profile>
+            <id>notar</id>
+            
+            <properties>
+                <tarAssemblies>false</tarAssemblies>
+            </properties>
+        </profile>
 
         <!--
         NOTE: This profile is used to enable plugin prefixes for easy command-line usage, as in: