|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<project name="L2J_DataPack" default="build" basedir=".">
|
|
|
+<project name="L2J_DataPack" default="zip" basedir=".">
|
|
|
<description>
|
|
|
Copyright (C) 2004-2014 L2J DataPack
|
|
|
|
|
@@ -20,32 +20,13 @@
|
|
|
</description>
|
|
|
|
|
|
<property name="build" location="build" />
|
|
|
- <property name="build.dist" location="${build}/dist" />
|
|
|
- <property name="build.dist.doc" location="${build.dist}/doc" />
|
|
|
- <property name="build.dist.game" location="${build.dist}/game" />
|
|
|
- <property name="build.dist.login" location="${build.dist}/login" />
|
|
|
|
|
|
- <target name="init" depends="checkRequirements" description="Create the output directories.">
|
|
|
+ <target name="init" description="Create the output directory.">
|
|
|
<mkdir dir="${build}" />
|
|
|
</target>
|
|
|
|
|
|
- <target name="dist" depends="init" description="Export the files to the output directory.">
|
|
|
- <sync todir="${build.dist}" includeemptydirs="true">
|
|
|
- <fileset dir="dist" />
|
|
|
- </sync>
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="build" depends="dist">
|
|
|
- <zip destfile="${build}/L2J_DataPack_BETA.zip" basedir="${build.dist}" level="9" />
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="checkRequirements" description="Check Requirements.">
|
|
|
- <fail message="Ant 1.8.2 is required. But your version is ${ant.version} and if you are using Eclipse probably is outdated.">
|
|
|
- <condition>
|
|
|
- <not>
|
|
|
- <antversion atleast="1.8.2" />
|
|
|
- </not>
|
|
|
- </condition>
|
|
|
- </fail>
|
|
|
+ <target name="zip" depends="init">
|
|
|
+ <tstamp description="Initialize ${DSTAMP}, which is in format yyyyMMdd" />
|
|
|
+ <zip destfile="${build}/L2J_DataPack-${DSTAMP}.zip" basedir="dist" level="9" />
|
|
|
</target>
|
|
|
</project>
|