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"
- form of a war file
- * source-distribution
- Sets up a distributable version of mir as a
- 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
-->
- * javadoc
- Generates the project's javadoc
-->
</target>
<target name="source-distribution" depends="prepare-source-distribution">
</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" />
<fileset dir="."
includes="bundles/**/*,source/**/*,etc/**/*,meta/**/*,web/**/*,templates/**/*,dbscripts/**/*,lib/**/*,doc/**/*,build.xml" />
+ </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>
destdir="${build}/htmldocs"
style="${build}/xslt/html.xsl"/>
</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>