Advertisement
Guest User

build.xml without svn

a guest
Nov 14th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.50 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="L2jFrozen_DataPack" default="dist-local" basedir=".">
  3.     <description>
  4.         This script will build the L2J-Frozen DataPack. Thanks for Using our Pack.
  5.        
  6.         This program is opensource  
  7.        
  8.     </description>
  9.  
  10.     <property file="build.properties" />
  11.  
  12.     <target name="prepare-test" description="Prepare the test folder property">
  13.  
  14.         <property name="build" location="${test_destination_folder}" />
  15.  
  16.     </target>
  17.  
  18.     <target name="prepare-compiledRev" description="Prepare the compiledRev folder property">
  19.  
  20.         <property name="build" location="${compiled_rev_destination_folder}" />
  21.  
  22.     </target>
  23.  
  24.     <target name="prepare-local" description="Prepare the local folder property">
  25.  
  26.         <property name="build" location="build" />
  27.  
  28.     </target>
  29.  
  30.     <target name="prepare-final" description="Prepare the final folders properties">
  31.  
  32.         <property name="build.dist" location="${build}/dist" />
  33.         <property name="build.dist.game" location="${build.dist}/gameserver" />
  34.         <property name="build.dist.login" location="${build.dist}/loginserver" />
  35.         <property name="build.dist.sql" location="${build.dist}/sql" />
  36.         <property name="build.dist.tools" location="${build.dist}/tools" />
  37.         <property name="properties-file" location="${build.dist.game}/config/version/l2jfrozen-datapack.properties" />
  38.  
  39.     </target>
  40.  
  41.     <target name="init" description="Create the output directories. Do nothing if dirs were already created">
  42.         <mkdir dir="${build}" />
  43.         <mkdir dir="${build.dist}" />
  44.         <mkdir dir="${build.dist.game}" />
  45.         <mkdir dir="${build.dist.login}" />
  46.     </target>
  47.  
  48.  
  49.     <target name="export" depends="init" description="Syncronizes build space contents with project.">
  50.         <copy todir="${build.dist.game}/data">
  51.             <fileset dir="${basedir}/data">
  52.                 <exclude name=".project" />
  53.                 <exclude name="log/**" />
  54.                 <exclude name="cachedir/**" />
  55.                 <exclude name="clans/**" />
  56.                 <exclude name="crests/**" />
  57.                 <exclude name="**.svn**" />
  58.                 <exclude name="**/*.class" />
  59.                 <exclude name="**/*.jar" />
  60.                 <exclude name="geodata/**" />
  61.                 <exclude name="pathnode/**" />
  62.                 <include name="**/*.*" />
  63.             </fileset>
  64.         </copy>
  65.         <copy todir="${build.dist.sql}">
  66.             <fileset dir="${basedir}/sql">
  67.                 <include name="*.*" />
  68.                 <include name="customs/*.*" />
  69.                 <include name="custom_zones/*.*" />
  70.                 <include name="updates/*.*" />
  71.             </fileset>
  72.         </copy>
  73.         <copy todir="${build.dist.tools}">
  74.             <fileset dir="${basedir}/tools">
  75.                 <include name="*.*" />
  76.                 <exclude name="database_installer.rc" />
  77.                 <exclude name="*.txt" />
  78.                 <exclude name="*.log" />
  79.                 <exclude name="*backup.sql" />
  80.                 <include name="custom/*.*" />
  81.             </fileset>
  82.         </copy>
  83.         <copy todir="${build.dist.login}">
  84.             <fileset dir="${build.dist.game}/data">
  85.                 <include name="servername.xml" />
  86.             </fileset>
  87.         </copy>
  88.     </target>
  89.  
  90.     <target name="dist-local" depends="prepare-local,prepare-final,export" description="Create distribution files and Zip one into 'build' folder">
  91.         <zip destfile="${build}/L2JFrozen_DataPack.zip" basedir="${build.dist}" update="true" />
  92.     </target>
  93.  
  94.     <target name="dist-test" depends="prepare-test,prepare-final,export" description="Create distribution files into 'local_test_folder' folder: change it into build.properties">
  95.     </target>
  96.  
  97.     <target name="dist-compiledRev" depends="prepare-compiledRev,prepare-final,export" description="Create distribution files into 'compiledRev_folder' folder: change it into build.properties">
  98.     </target>
  99. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement