Guest User

Untitled

a guest
Mar 17th, 2015
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="Admin Commands Build" default="build" basedir=".">
  3.  
  4. <property name="src" location="dist" />
  5. <property name="lib" location="libs" />
  6. <property name="build" location="../builds" />
  7. <property name="build.classes" location="${build}/classes" />
  8. <property name="src.scripts" location="dist/gameserver/data"/>
  9.  
  10. <path id="classpath">
  11. <fileset dir="${lib}">
  12. <include name="**/*.jar" />
  13. </fileset>
  14. </path>
  15.  
  16. <target name="verifyRequirements" description="Checks if the necessary requirements for building L2J are fulfilled">
  17. <available classname="javax.script.ScriptContext" property="JDK7.present" />
  18. <fail unless="JDK7.present" message="JDK 7 or greater is required." />
  19. </target>
  20.  
  21. <target name="init" depends="verifyRequirements" description="Create the output directories.">
  22. <mkdir dir="${build}" />
  23. <mkdir dir="${build.classes}" />
  24. </target>
  25.  
  26. <target name="compile" depends="init" description="Compile the source.">
  27. <javac destdir="${build.classes}" optimize="on" debug="on" source="1.7" target="1.7" nowarn="off" includeantruntime="false" >
  28. <src path="${src.scripts}" />
  29. <classpath refid="classpath" />
  30. </javac>
  31. </target>
  32.  
  33. <target name="jar" depends="compile" description="Create the jar file">
  34. <jar destfile="${build}/l2f-commands.jar">
  35. <fileset dir="${build.classes}" >
  36. <include name="**/admincommands/**"/>
  37. </fileset>
  38. </jar>
  39.  
  40. <delete dir="${build.classes}" />
  41. </target>
  42.  
  43. <target name="build" depends="jar">
  44.  
  45. <delete dir="${build.classes}" />
  46.  
  47. </target>
  48. </project>
Advertisement
Add Comment
Please, Sign In to add comment