syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject svn commit: r1329812 - in /incubator/syncope/trunk: pom.xml src/ src/assemble/ src/assemble/source-assembly.xml
Date Tue, 24 Apr 2012 15:59:50 GMT
Author: ilgrosso
Date: Tue Apr 24 15:59:49 2012
New Revision: 1329812

URL: http://svn.apache.org/viewvc?rev=1329812&view=rev
Log:
[SYNCOPE-66] zip and tar.gz source archives are now created: still to be verified whether
release plugin generates all necessary ASC, MD5 and SHA1 for these

Added:
    incubator/syncope/trunk/src/
    incubator/syncope/trunk/src/assemble/
    incubator/syncope/trunk/src/assemble/source-assembly.xml   (with props)
Modified:
    incubator/syncope/trunk/pom.xml

Modified: incubator/syncope/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/pom.xml?rev=1329812&r1=1329811&r2=1329812&view=diff
==============================================================================
--- incubator/syncope/trunk/pom.xml (original)
+++ incubator/syncope/trunk/pom.xml Tue Apr 24 15:59:49 2012
@@ -70,10 +70,33 @@ under the License.
   <profiles>
     <profile>
       <id>apache-release</id>
-      <build>
+      
+      <build>        
         <plugins>
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <version>2.3</version>
+            <executions>
+              <execution>
+                <id>sources</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+                <configuration>
+                  <finalName>syncope-${project.version}</finalName>
+                  <descriptor>src/assemble/source-assembly.xml</descriptor>
+                  <outputDirectory>${project.build.directory}/dist</outputDirectory>
+                  <workDirectory>${project.build.directory}/work</workDirectory>
+                  <tarLongFileMode>gnu</tarLongFileMode>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+          
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-gpg-plugin</artifactId>
             <version>1.4</version>
             <executions>
@@ -88,6 +111,7 @@ under the License.
           </plugin>
         </plugins>
       </build>
+      
       <modules>
         <module>quality</module>
         <module>archetype</module>

Added: incubator/syncope/trunk/src/assemble/source-assembly.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/src/assemble/source-assembly.xml?rev=1329812&view=auto
==============================================================================
--- incubator/syncope/trunk/src/assemble/source-assembly.xml (added)
+++ incubator/syncope/trunk/src/assemble/source-assembly.xml Tue Apr 24 15:59:49 2012
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+ 
+ http://www.apache.org/licenses/LICENSE-2.0
+ 
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.   
+-->
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"

+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2

+                              http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+  <id>source</id>
+  <formats>
+    <format>zip</format>
+    <format>tar.gz</format>
+  </formats>
+  <!--
+        rather than including the base directory (which would cause this
+        archive to unpack into the same directory as the binary
+        distribution), we specify the directory into which to put
+        sources below, in the <outputDirectory> tags
+  -->
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <fileSets>
+    <fileSet>
+      <directory>.</directory>
+      <outputDirectory>syncope-${version}-source</outputDirectory>
+      <excludes>
+        <exclude>**/target/**</exclude>
+        <exclude>**/*.log</exclude>
+        <exclude>**/.*</exclude>
+        <exclude>**/.*/**</exclude>
+      </excludes>
+    </fileSet>
+
+    <!--
+            Also put the standard license and notice files at the top
+            of the zip. Even those these will be included in the
+            openjpa-project sub-directory, the Apache rules say that
+            it needs to be in the top-level of the artifact. See:
+
+                http://www.apache.org/legal/src-headers.html#notice
+    -->
+    <fileSet>
+      <outputDirectory>${artifactId}-${version}-source</outputDirectory>
+      <includes>
+        <include>README</include>
+        <include>DISCLAIMER</include>
+        <include>LICENSE</include>
+        <include>STATUS</include>
+        <include>NOTICE</include>
+        <include>README.txt</include>
+        <include>DISCLAIMER.txt</include>
+        <include>LICENSE.txt</include>
+        <include>STATUS.txt</include>
+        <include>NOTICE.txt</include>
+        <include>BUILDING</include>
+        <include>BUILDING.txt</include>
+        <include>RELEASE-NOTES</include>
+        <include>RELEASE-NOTES.html</include>
+        <include>RELEASE-NOTES.txt</include>
+        <include>CHANGES</include>
+        <include>CHANGES.txt</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</assembly>

Propchange: incubator/syncope/trunk/src/assemble/source-assembly.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/syncope/trunk/src/assemble/source-assembly.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/syncope/trunk/src/assemble/source-assembly.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message