|
@@ -27,7 +27,7 @@
|
|
<property name="build.dist.game" location="${build.dist}/game" />
|
|
<property name="build.dist.game" location="${build.dist}/game" />
|
|
<property name="build.dist.login" location="${build.dist}/login" />
|
|
<property name="build.dist.login" location="${build.dist}/login" />
|
|
|
|
|
|
- <target name="init" depends="clean, getChangelogDateVersion" description="Create the output directories. Do nothing if dirs were already created">
|
|
|
|
|
|
+ <target name="init" depends="clean,checkRequirements,getChangelogDateVersion" description="Create the output directories. Do nothing if dirs were already created">
|
|
<mkdir dir="${build}" />
|
|
<mkdir dir="${build}" />
|
|
</target>
|
|
</target>
|
|
|
|
|
|
@@ -50,6 +50,16 @@
|
|
<delete file="${build}/L2J_DataPack_BETA.zip" />
|
|
<delete file="${build}/L2J_DataPack_BETA.zip" />
|
|
</target>
|
|
</target>
|
|
|
|
|
|
|
|
+ <target name="checkRequirements" description="Check Requirements">
|
|
|
|
+ <fail message="Ant 1.8.2 is required. But your version is ${ant.version}">
|
|
|
|
+ <condition>
|
|
|
|
+ <not>
|
|
|
|
+ <antversion atleast="1.8.2" />
|
|
|
|
+ </not>
|
|
|
|
+ </condition>
|
|
|
|
+ </fail>
|
|
|
|
+ </target>
|
|
|
|
+
|
|
<target name="getChangelogDateVersion" description="Get Changelog, Date, Version">
|
|
<target name="getChangelogDateVersion" description="Get Changelog, Date, Version">
|
|
<exec dir="." executable="svn" outputproperty="l2j.changelog">
|
|
<exec dir="." executable="svn" outputproperty="l2j.changelog">
|
|
<arg value="log" />
|
|
<arg value="log" />
|