Revamped the snapshot task to copy the dist/lib/ dependent jars into lib/ for

the snapshot so that it contains all appropriate dependencies regardless of
from where the local build got them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4427 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-10-13 22:42:34 +00:00
parent 0962f1035b
commit bb650a11d2
+13 -7
View File
@@ -257,14 +257,20 @@
<target name="snapshot">
<echo message="You may want to stop and run 'ant savedoc' first."/>
<delete file="${app.name}-snapshot.zip"/>
<zip destfile="${app.name}-snapshot.zip">
<fileset dir="..">
<include name="${app.name}/**"/>
<exclude name="${app.name}/dist/**"/>
<exclude name="${app.name}/tests/dist/**"/>
<exclude name="${app.name}/${app.name}-*.zip"/>
<mkdir dir="../snapshot/${app.name}"/>
<copy todir="../snapshot/${app.name}">
<fileset dir=".">
<include name="**"/>
<exclude name="dist/**"/>
<exclude name="tests/dist/**"/>
<exclude name="${app.name}-*.zip"/>
</fileset>
</zip>
</copy>
<copy todir="../snapshot/${app.name}/lib">
<fileset dir="dist/lib" includes="*.jar"/>
</copy>
<zip destfile="${app.name}-snapshot.zip" basedir="../snapshot"/>
<delete dir="../snapshot"/>
</target>
</project>