Let's build our snapshot into dist/ and not use ../snapshot as our temp directory.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@151 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Jonathan Le Plastrier
2007-01-24 00:54:54 +00:00
parent 1245defe65
commit db7d7bd472
+7 -7
View File
@@ -299,9 +299,9 @@
<!-- creates a zipfile with our source distribution --> <!-- creates a zipfile with our source distribution -->
<target name="snapshot"> <target name="snapshot">
<echo message="You may want to stop and run 'ant savedoc' first."/> <echo message="You may want to stop and run 'ant savedoc' first."/>
<delete file="${app.name}-snapshot.zip"/> <delete file="${deploy.dir}/${app.name}-snapshot.zip"/>
<mkdir dir="../snapshot/${app.name}"/> <mkdir dir="${deploy.dir}/snapshot/${app.name}"/>
<copy todir="../snapshot/${app.name}"> <copy todir="${deploy.dir}/snapshot/${app.name}">
<fileset dir="."> <fileset dir=".">
<include name="**"/> <include name="**"/>
<exclude name="dist/**"/> <exclude name="dist/**"/>
@@ -309,11 +309,11 @@
<exclude name="${app.name}-*.zip"/> <exclude name="${app.name}-*.zip"/>
</fileset> </fileset>
</copy> </copy>
<copy todir="../snapshot/${app.name}/lib"> <copy todir="${deploy.dir}/snapshot/${app.name}/lib">
<fileset dir="dist/lib" includes="*.jar"/> <fileset dir="${deploy.dir}/lib" includes="*.jar"/>
</copy> </copy>
<zip destfile="${app.name}-snapshot.zip" basedir="../snapshot"/> <zip destfile="${deploy.dir}/${app.name}-snapshot.zip" basedir="${deploy.dir}/snapshot"/>
<delete dir="../snapshot"/> <delete dir="${deploy.dir}/snapshot"/>
</target> </target>
</project> </project>