build.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="L2J_DataPack" default="build" basedir=".">
  3. <description>
  4. Copyright (C) 2004-2014 L2J DataPack
  5. This file is part of L2J DataPack.
  6. L2J DataPack is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. L2J DataPack is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see "http://www.gnu.org/licenses/".
  16. </description>
  17. <property name="build" location="build" />
  18. <property name="build.dist" location="${build}/dist" />
  19. <property name="build.dist.doc" location="${build.dist}/doc" />
  20. <property name="build.dist.game" location="${build.dist}/game" />
  21. <property name="build.dist.login" location="${build.dist}/login" />
  22. <target name="init" depends="checkRequirements" description="Create the output directories.">
  23. <mkdir dir="${build}" />
  24. </target>
  25. <target name="dist" depends="init" description="Export the files to the output directory.">
  26. <sync todir="${build.dist}" includeemptydirs="true">
  27. <fileset dir="dist" />
  28. </sync>
  29. </target>
  30. <target name="build" depends="dist">
  31. <zip destfile="${build}/L2J_DataPack_BETA.zip" basedir="${build.dist}" level="9" />
  32. </target>
  33. <target name="checkRequirements" description="Check Requirements.">
  34. <fail message="Ant 1.8.2 is required. But your version is ${ant.version} and if you are using Eclipse probably is outdated.">
  35. <condition>
  36. <not>
  37. <antversion atleast="1.8.2" />
  38. </not>
  39. </condition>
  40. </fail>
  41. </target>
  42. </project>