- 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 name="compile" depends="prepare-compilation" unless="up.to.date"
description="Creates the jars needed for a mir deployment">
- <javac destdir="${build.classes}" debug="true">
+ <javac destdir="${build.classes}" debug="true" deprecation="off" source="1.3">
<src path="source"/>
<src path="etc/extrasource"/>
<classpath refid="project.classpath"/>
</javac>
+ <delete file="${build.jars}/mir.jar"/>
+
<jar
jarfile="${build.jars}/mir.jar">
<fileset dir="${build.classes}" includes="**/*.class" />
<mkdir dir="${build.javadoc}"/>
</target>
- <target name="prepare-binary-distribution">
+ <target name="prepare-distribution">
<mkdir dir="${distribution.home}"/>
- <delete dir="${build}/binarydist"/>
- <mkdir dir="${build}/binarydist"/>
+ <delete dir="${build}/dist"/>
+ <mkdir dir="${build}/dist"/>
</target>
- <target name="binary-distribution" depends="prepare-binary-distribution">
+ <target name="distribution" depends="prepare-distribution">
<antcall target="generate-deployment-tree">
- <param name="destination" value="${build}/binarydist"/>
+ <param name="destination" value="${build}/dist"/>
</antcall>
- <zip zipfile="${distribution.home}/binary.zip" >
- <fileset dir="${build}/binarydist" includes="**/*" />
- </zip>
+ <tar tarfile="${distribution.home}/mir-${version}.tar.gz" compression="gzip">
+ <tarfileset dir="${build}/dist" includes="**/*" />
+ </tar>
</target>
<target name="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" />
- </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>
<target name="prepare-html">
<mkdir dir="${build}/xslt"/>
-<!-- <unzip dest="${build}/xslt">
- <fileset dir="doc/lib">
- <include name="*.zip"/>
- </fileset>
- </unzip>
- -->
+ <unzip dest="${build}/xslt" src="doc/lib/docbook-xsl-1.70.1.zip"/>
+
<copy todir="${build}/xslt">
<fileset dir="doc/style">
<include name="*"/>
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>