Added a nightly-build target that creates a zip file

dist/nightlyBuild.zip.  As the suggestive name implies, coupling this
with a shell script like '(cvs -f -q update -dP && ant nightly-build
&& scp dist/nightlyBuild.zip && ssh 'cd wherever/ && unzip foo') ||
email_error_message' would yield a nightly build process for us.
This commit is contained in:
dchandler 2002-11-18 22:16:07 +00:00
parent 07fe242596
commit cfb111eeb1

View file

@ -160,10 +160,31 @@
<target name="test-all"
depends="clean,distclean,compile,dist,src-dist,self-contained-dist,public-javadocs-dist,private-javadocs-dist,releases,web-start-releases"
depends="clean,distclean,compile,dist,src-dist,self-contained-dist,public-javadocs-dist,private-javadocs-dist,releases,web-start-releases,nightly-build"
description="runs every target in this buildfile in a smart order; useful for testing the buildfile and your build environment" />
<target name="nightly-build"
depends="distclean"
description="Creates ${dist}/nightlyBuild.zip" >
<!-- I believe that this order might actually matter, because some
targets execute 'ant clean' (though they only do so because I
am lazy). -->
<antcall target="web-start-releases"/>
<antcall target="self-contained-dist"/>
<antcall target="dist"/>
<antcall target="public-javadocs-dist"/>
<antcall target="private-javadocs-dist"/>
<antcall target="src-dist"/>
<zip destfile="${dist}/nightlyBuild.zip">
<zipfileset dir="${dist}"
excludes="nightlyBuild.zip,lib-jws/**,*.jnlp,README.txt"
prefix="."/>
</zip>
</target>
<target name="self-contained-dist"
depends="jskad-all-in-one-dist,savant-all-in-one-dist,qd-all-in-one-dist"
description="JARs up everything into self-contained JARs for double-click, classpath-worry-free joy" />
@ -662,6 +683,10 @@
<delete dir="${privatejavadocs}"/>
<delete dir="${dist}/java-web-start"/>
<!-- 'ant clean' may be run during the nightly-build target, so
'ant clean' cannot delete the following: -->
<delete file="${dist}/nightlyBuild.zip"/>
</target>