cziegeler 2002/07/01 23:57:31 Modified: . build.xml Log: First step for a samples distribution Revision Changes Path 1.234 +39 -2 xml-cocoon2/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/build.xml,v retrieving revision 1.233 retrieving revision 1.234 diff -u -r1.233 -r1.234 --- build.xml 17 Jun 2002 02:25:54 -0000 1.233 +++ build.xml 2 Jul 2002 06:57:31 -0000 1.234 @@ -232,6 +232,7 @@ <property name="dist.dir" value="${dist.root}/${dist.name}"/> <property name="dist.src.dir" value="${dist.root}/source/${dist.name}"/> <property name="dist.bin.dir" value="${dist.root}/bin/${dist.name}"/> + <property name="dist.samples.dir" value="${dist.root}/samples"/> <property name="dist.target" value="${dist.root}"/> <property name="site" value="../xml-site/targets/${name}"/> @@ -1703,7 +1704,10 @@ <copy file="INSTALL.bin" tofile="${dist.bin.dir}/INSTALL" filtering="on"/> <!-- Build the war file --> - <jar jarfile="${dist.bin.dir}/${name}.war" basedir="${dist.bin.dir}/webapp" includes="**"/> + <jar jarfile="${dist.bin.dir}/${name}.war" + basedir="${dist.bin.dir}/webapp" + includes="**" + excludes="samples/**"/> <!-- Delete the webapp directory --> <delete dir="${dist.bin.dir}/webapp"/> @@ -1729,6 +1733,36 @@ </target> <!-- =================================================================== --> + <!-- Prepares the binary distribution --> + <!-- =================================================================== --> + <target name="dist-samples" depends="webapp"> + <!-- Copy webapp and the html docs --> + <mkdir dir="${dist.samples.dir}/samples"/> + <copy todir="${dist.samples.dir}/samples"> + <fileset dir="${build.war}/samples"/> + </copy> + </target> + + <!-- =================================================================== --> + <!-- Packages the samples distribution as .zip --> + <!-- =================================================================== --> + <target name="dist-samples-zip" depends="dist-samples"> + <zip zipfile="${dist.target}/${dist.name}-samples.zip" + basedir="${dist.samples.dir}"/> + </target> + + <!-- =================================================================== --> + <!-- Packages the samples distribution with .tar.gzip --> + <!-- =================================================================== --> + <target name="dist-samples-tgz" depends="dist-samples"> + <tar tarfile="${dist.target}/${dist.name}-samples.tar" + basedir="${dist.samples.dir}" + longfile="gnu"/> + <gzip zipfile="${dist.target}/${dist.name}-samples.tar.gz" + src="${dist.target}/${dist.name}-samples.tar"/> + </target> + + <!-- =================================================================== --> <!-- Build all distributions --> <!-- =================================================================== --> <target name="dist-info" depends="init"> @@ -1748,7 +1782,7 @@ <!-- Build all distributions --> <!-- =================================================================== --> <target name="dist" - depends="dist-info, dist-bin-tgz, dist-bin-zip, dist-src-tgz, dist-src-zip" + depends="dist-info, dist-bin-tgz, dist-bin-zip, dist-src-tgz, dist-src-zip, dist-samples-tgz, dist-samples-zip" description="[admin] Builds the distributions"> </target> @@ -1770,6 +1804,9 @@ <delete file="${dist.target}/${Name}-${version}-bin.tar.gz"/> <delete file="${dist.target}/${Name}-${version}-bin.tar"/> <delete file="${dist.target}/${Name}-${version}-bin.zip"/> + <delete file="${dist.target}/${Name}-${version}-samples.tar.gz"/> + <delete file="${dist.target}/${Name}-${version}-samples.tar"/> + <delete file="${dist.target}/${Name}-${version}-samples.zip"/> <delete dir="${dist.root}"/> </target>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]