build_quests.xml
Код:
<project default="build">
<target name="build">
<path id="libs">
<fileset dir="libs">
<include name="*.jar"/>
</fileset>
<fileset dir="build">
<include name="*.jar"/>
</fileset>
</path>
<ant antfile="./ant/build_template.xml">
<property name="source" location="gameserver/quests"/>
<property name="output" location="build"/>
<property name="lib_name" value="quests"/>
<reference refid="libs"/>
</ant>
<copy todir="build/game/extensions">
<fileset dir="build">
<include name="quests.jar"/>
</fileset>
</copy>
</target>
</project>
build.xml
Код:
...
<target name="all">
...
<ant antfile="./ant/build_quests.xml"/>
</target>
...
<target name="rebuild_extensions">
<ant antfile="./ant/build_quests.xml"/>
</target>