[jboss-cvs] JBoss Messaging SVN: r7593 - trunk.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jul 20 08:55:19 EDT 2009


Author: jmesnil
Date: 2009-07-20 08:55:18 -0400 (Mon, 20 Jul 2009)
New Revision: 7593

Modified:
   trunk/build-messaging.xml
   trunk/build.xml
Log:
JBMESSAGING-1659: Create source distribution

* added a source-distro target which creates a source distribution (containing source + all libs from thirdparty)
* renamed distro to bin-distro
* distro target now builds both bin-distro (zip and tgz) and source-distro (zip only)

the source zip is bigger (18MB) than bin distribution due to the inclusion of docbook libs (11MB)


Modified: trunk/build-messaging.xml
===================================================================
--- trunk/build-messaging.xml	2009-07-20 09:36:18 UTC (rev 7592)
+++ trunk/build-messaging.xml	2009-07-20 12:55:18 UTC (rev 7593)
@@ -727,7 +727,7 @@
    <!-- Distribution targets                                                                     -->
    <!-- ======================================================================================== -->
 
-   <target name="distro" depends="createthirdparty, jar, jar-core-client, jar-jms-client, validate-configuration">
+   <target name="bin-distro" depends="createthirdparty, jar, jar-core-client, jar-jms-client, validate-configuration">
       
       <mkdir dir="${build.distro.dir}"/>
       <mkdir dir="${build.distro.lib.dir}"/>
@@ -854,6 +854,27 @@
             destfile="${build.dir}/${build.artifact}.tar.gz"/>
    </target>
 
+
+   <target name="source-distro">
+      <mkdir dir="${build.dir}"/>
+      <zip destfile="${build.dir}/${build.artifact}-src.zip">
+         <zipfileset dir="${basedir}" prefix="${build.artifact}-src">
+            <exclude name="**/.svn"/>
+            <exclude name="*.iml"/>
+            <exclude name="*.ipr"/>
+            <exclude name="*.iws"/>
+            <exclude name="**/output/**"/>
+            <exclude name="eclipse-output/**"/>
+            <exclude name="**/build/**"/>
+            <exclude name="**/target/**"/>
+            <exclude name="**/data/**"/>
+            <exclude name="**/logs/**"/>
+            <exclude name="**/ObjectStore/**"/>
+            <exclude name="junit*.properties"/>
+         </zipfileset>
+      </zip>
+   </target>
+
    <!-- ======================================================================================== -->
    <!-- Documentation Targets                                                                    -->
    <!-- ======================================================================================== -->

Modified: trunk/build.xml
===================================================================
--- trunk/build.xml	2009-07-20 09:36:18 UTC (rev 7592)
+++ trunk/build.xml	2009-07-20 12:55:18 UTC (rev 7593)
@@ -181,11 +181,17 @@
       <ant antfile="build-messaging.xml" target="build.sar"/>
    </target>
 
-   <target name="distro" depends="createthirdparty">
-      <ant antfile="build-messaging.xml" target="distro"/>
+   <target name="distro" depends="bin-distro, source-distro" />
+	
+   <target name="bin-distro" depends="createthirdparty">
+      <ant antfile="build-messaging.xml" target="bin-distro"/>
    </target>
 
-    <target name="artifacts" depends="createthirdparty">
+   <target name="source-distro" depends="createthirdparty">
+      <ant antfile="build-messaging.xml" target="source-distro"/>
+   </target>
+
+	<target name="artifacts" depends="createthirdparty">
       <ant antfile="build-messaging.xml" target="artifacts"/>
    </target>
 




More information about the jboss-cvs-commits mailing list