/[Apache-SVN]/incubator/derby/code/trunk/build.xml
ViewVC logotype

Diff of /incubator/derby/code/trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- incubator/derby/code/trunk/build.xml	2005/04/28 19:26:22	165184
+++ incubator/derby/code/trunk/build.xml	2005/04/28 19:27:23	165185
@@ -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                            -->
@@ -1132,4 +1132,36 @@
 
   <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 &quot;ant -Dsane=false snapshot&quot;, or run"/>
+    <echo message="the insane target before running the snapshot target."/>
+    <echo message=""/>
+    <fail message="Exiting snapshot build..."/>
+  </target>
+
 </project>

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26