geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1072877 - in /geronimo/server/branches/2.1: buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java pom.xml
Date Mon, 21 Feb 2011 08:10:18 GMT
Author: genspring
Date: Mon Feb 21 08:10:17 2011
New Revision: 1072877

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

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

Modified: geronimo/server/branches/2.1/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java?rev=1072877&r1=1072876&r2=1072877&view=diff
==============================================================================
--- geronimo/server/branches/2.1/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java
(original)
+++ geronimo/server/branches/2.1/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java
Mon Feb 21 08:10:17 2011
@@ -79,6 +79,12 @@ public class ArchiveMojo extends MojoSup
      * @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.
@@ -102,7 +108,9 @@ public class ArchiveMojo extends MojoSup
                 archiver.addExclude(exclude);
             }
         }
-        archive("tar.gz", archiver);
+            if(tarAssemblies){
+                archive("tar.gz", archiver);
+            }
         archive("zip", archiver);
     }
 

Modified: geronimo/server/branches/2.1/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/pom.xml?rev=1072877&r1=1072876&r2=1072877&view=diff
==============================================================================
--- geronimo/server/branches/2.1/pom.xml (original)
+++ geronimo/server/branches/2.1/pom.xml Mon Feb 21 08:10:17 2011
@@ -2583,7 +2583,15 @@
             </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:
 
               mvn -Ptools geronimo:start



Mime
View raw message