Author: fuzzylogic Date: Thu Apr 28 12:27:23 2005 New Revision: 165185 URL: http://svn.apache.org/viewcvs?rev=165185&view=rev Log: Add snapshot target to trunk build.xml
Modified: incubator/derby/code/trunk/build.xml Modified: incubator/derby/code/trunk/build.xml URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/build.xml?rev=165185&r1=165184&r2=165185&view=diff ============================================================================== --- incubator/derby/code/trunk/build.xml (original) +++ incubator/derby/code/trunk/build.xml Thu Apr 28 12:27:23 2005 @@ -339,7 +339,7 @@ <!-- =================================================================== --> <!-- Remove all built objects (except jars) --> <!-- =================================================================== --> - <target name="clobber" depends="showenv,clean,cleanstate,cleanparsers,cleancatalog"/> + <target name="clobber" depends="clean,cleanstate,cleanparsers,cleancatalog"/> <!-- =================================================================== --> <!-- Remove output tree --> @@ -1131,5 +1131,37 @@ </target> <target name="gump_split_7" depends="all,buildjars,javadoc"/> + + <target name="snapshot" depends="clobber,snapshotError,init,initjars"> + <antcall target="insane"/> + <antcall target="all"/> + <antcall target="buildjars"/> + <antcall target="plugin"/> + <antcall target="publishedapi"/> + + <mkdir dir="${basedir}/snapshot"/> + <zip destfile="${basedir}/snapshot/incubating-derby-snapshot-${major}.${minor}-${changenumber}.zip"> + <fileset dir="${basedir}/jars/insane" includes="*.jar,*.war"/> + <fileset dir="${basedir}" includes="COPYRIGHT,LICENSE,NOTICE,README,frameworks/**,javadoc/publishedapi/**"/> + <fileset dir="${basedir}/java" includes="demo/**"/> + </zip> + <tar destfile="${basedir}/snapshot/incubating-derby-snapshot-${major}.${minor}-${changenumber}.tar.gz" + compression="gzip"> + <tarfileset dir="${basedir}/jars/insane" includes="*.jar,*.war"/> + <tarfileset dir="${basedir}" includes="COPYRIGHT,LICENSE,NOTICE,README,frameworks/**,javadoc/publishedapi/**"/> + <tarfileset dir="${basedir}/java" includes="demo/**"/> + </tar> + + <copy file="${basedir}/jars/insane/derby_core_plugin_${major}.${minor}.0.zip" + tofile="${basedir}/snapshot/derby_core_plugin_${major}.${minor}.0.${changenumber}.zip"/> + </target> + + <target name="snapshotError" if="is.sane"> + <echo message="Please generate the snapshot using an insane build."/> + <echo message="Either run "ant -Dsane=false snapshot", or run"/> + <echo message="the insane target before running the snapshot target."/> + <echo message=""/> + <fail message="Exiting snapshot build..."/> + </target> </project>