123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project name="L2J_DataPack" default="dist" basedir=".">
- <description>
- This script will build the L2J DataPack.
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3, or (at your option)
- any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA.
- http://www.gnu.org/copyleft/gpl.html
- </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="clean" description="Create the output directories. Do nothing if dirs were already created">
- <mkdir dir="${build}" />
- </target>
- <target name="dist" depends="init" description="Syncronizes build space contents with project.">
- <sync todir="${build.dist}" includeemptydirs="true">
- <fileset dir="dist" />
- </sync>
- <concat destfile="${build.dist.doc}/L2J_DataPack_CHANGELOG.txt">${l2j.changelog}</concat>
- <concat destfile="${build.dist.game}/config/l2jdp-version.properties">version=${l2j.version}${line.separator}builddate=${build.tstamp}</concat>
- <copy todir="${build.dist.game}/data">
- <fileset dir="misc" />
- </copy>
- <copy todir="${build.dist.login}/data">
- <fileset dir="misc" />
- </copy>
- <tstamp>
- <format property="build.date" pattern="yyyy-MM-dd" />
- </tstamp>
- <zip destfile="${build}/L2J_DataPack_${build.date}.zip" basedir="${build.dist}" />
- </target>
- <target name="clean" description="Deletes the datapack distribution ZIP file only, preserving synchronized build files.">
- <delete file="${build}/L2J_DataPack.zip" />
- </target>
- </project>
|