changed the "source-distribution" target to produce a tar.gz instead of a zip file.
authorpietrus <pietrus>
Tue, 22 Aug 2006 21:31:47 +0000 (21:31 +0000)
committerpietrus <pietrus>
Tue, 22 Aug 2006 21:31:47 +0000 (21:31 +0000)
created a new target called "full-distribution" that will build mir, build the source distribution tarball, copy the source distribution to "bin/mir/WEB-INF" and create a tarball of "bin/mir" called "mir-${version}.tar.gz" in "dist"

build.xml

index e56f8d4..79b861c 100755 (executable)
--- a/build.xml
+++ b/build.xml
     -        form of a war file
     -   * source-distribution
     -        Sets up a distributable version of mir as a
-    -        zipped version of the source tree
+    -        gzipped tar version of the source tree
+    -   * full-distribution
+    -        Sets up a distributable version of mir in the
+    -        form of a gzipped tar file with the sources
     -   * javadoc
     -        Generates the project's javadoc
     -->
   </target>
 
   <target name="source-distribution" depends="prepare-source-distribution">
-    <zip zipfile="${distribution.home}/source.zip" >
+    <!--<zip zipfile="${distribution.home}/mir-source-${version}.zip" >
       <fileset dir="."
         includes="bundles/**/*,source/**/*,etc/**/*,meta/**/*,web/**/*,templates/**/*,dbscripts/**/*,lib/**/*,doc/**/*,build.xml" />
-    </zip>
+    </zip>-->
+    <tar tarfile="${distribution.home}/mir-source-${version}.tar.gz" compression="gzip">
+      <tarfileset dir="."
+        includes="bundles/**/*,source/**/*,etc/**/*,meta/**/*,web/**/*,templates/**/*,dbscripts/**/*,lib/**/*,doc/**/*,build.xml" />
+    </tar>
 
   </target>
   
           destdir="${build}/htmldocs"
           style="${build}/xslt/html.xsl"/>
   </target>
-  
+
+  <target name="full-distribution" depends="prepare-distribution,deploy,source-distribution">
+       <copy todir="${destination}/WEB-INF">
+             <fileset file="${distribution.home}/mir-source-${version}.tar.gz"/>
+           </copy>
+    <tar tarfile="${distribution.home}/mir-${version}.tar.gz" compression="gzip">
+      <tarfileset dir="bin" includes="**/*" />
+    </tar>
+  </target>
 
 </project>