build.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="L2J_Datapack" default="dist" basedir=".">
  3. <description>
  4. This script will build the L2J_Datapack.
  5. $Author: drakin $
  6. $Date: 2005-07-17 4:11:28 +0200 (zo, 17 jul 2005) $
  7. $Revision: initial import $
  8. This program is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2, or (at your option)
  11. any later version.
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  19. 02111-1307, USA.
  20. http://www.gnu.org/copyleft/gpl.html
  21. </description>
  22. <property name="build" location="build"/>
  23. <property name="build.dist" location="${build}/dist"/>
  24. <target name="init"
  25. depends="clean"
  26. description="Create the output directories.">
  27. <mkdir dir="${build}"/>
  28. <mkdir dir="${build.dist}" />
  29. </target>
  30. <target name="dist"
  31. depends="version">
  32. <copy todir="${build.dist}">
  33. <fileset dir="${basedir}">
  34. <exclude name=".project"/>
  35. <exclude name="build.xml"/>
  36. <exclude name="build/**"/>
  37. <exclude name="log/**"/>
  38. <exclude name="data/clans/**"/>
  39. <exclude name="data/crests/**"/>
  40. <exclude name="**.svn**"/>
  41. <exclude name="**/*.class"/>
  42. <include name="**/*.*"/>
  43. </fileset>
  44. </copy>
  45. <delete file="${build}/L2J_DataPack.zip"/>
  46. <zip destfile="${build}/L2J_DataPack.zip"
  47. basedir="${build.dist}"/>
  48. </target>
  49. <target name="version"
  50. depends="init"
  51. description="Create l2jdp-version.properties file">
  52. <tstamp>
  53. <format property="build.tstamp"
  54. pattern="yyyyMMdd_HHmm"/>
  55. </tstamp>
  56. <exec dir="." executable="svnversion" outputproperty="l2j.revision"
  57. failifexecutionfails="false">
  58. <arg line="-n ."/>
  59. </exec>
  60. <concat destfile="${build.dist}/config/l2jdp-version.properties">
  61. version=${l2j.revision}
  62. builddate=${build.tstamp}
  63. Detailed Info:
  64. </concat>
  65. <concat destfile="${build.dist}/config/l2jdp-version.properties" append="true">
  66. <filelist dir="${src}/../.svn/" files="entries"/>
  67. <filterchain>
  68. <headfilter lines="5" skip="4"/>
  69. </filterchain>
  70. </concat>
  71. </target>
  72. <target name="clean"
  73. description="Deletes the zip file">
  74. <delete dir="${build}"/>
  75. </target>
  76. </project>