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:
@@ -257,14 +257,20 @@
|
|||||||
<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="${app.name}-snapshot.zip"/>
|
||||||
<zip destfile="${app.name}-snapshot.zip">
|
<mkdir dir="../snapshot/${app.name}"/>
|
||||||
<fileset dir="..">
|
<copy todir="../snapshot/${app.name}">
|
||||||
<include name="${app.name}/**"/>
|
<fileset dir=".">
|
||||||
<exclude name="${app.name}/dist/**"/>
|
<include name="**"/>
|
||||||
<exclude name="${app.name}/tests/dist/**"/>
|
<exclude name="dist/**"/>
|
||||||
<exclude name="${app.name}/${app.name}-*.zip"/>
|
<exclude name="tests/dist/**"/>
|
||||||
|
<exclude name="${app.name}-*.zip"/>
|
||||||
</fileset>
|
</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>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user