geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1072874 - in /geronimo/server/branches/3.0-M2: framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java pom.xml
Date Mon, 21 Feb 2011 08:06:27 GMT
Author: genspring
Date: Mon Feb 21 08:06:27 2011
New Revision: 1072874

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

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

Modified: geronimo/server/branches/3.0-M2/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0-M2/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java?rev=1072874&r1=1072873&r2=1072874&view=diff
==============================================================================
--- geronimo/server/branches/3.0-M2/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java
(original)
+++ geronimo/server/branches/3.0-M2/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/ArchiveMojo.java
Mon Feb 21 08:06:27 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/branches/3.0-M2/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0-M2/pom.xml?rev=1072874&r1=1072873&r2=1072874&view=diff
==============================================================================
--- geronimo/server/branches/3.0-M2/pom.xml (original)
+++ geronimo/server/branches/3.0-M2/pom.xml Mon Feb 21 08:06:27 2011
@@ -2494,7 +2494,15 @@ 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:
 



Mime
View raw message