Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <project name="Admin Commands Build" default="build" basedir=".">
- <property name="src" location="dist" />
- <property name="lib" location="libs" />
- <property name="build" location="../builds" />
- <property name="build.classes" location="${build}/classes" />
- <property name="src.scripts" location="dist/gameserver/data"/>
- <path id="classpath">
- <fileset dir="${lib}">
- <include name="**/*.jar" />
- </fileset>
- </path>
- <target name="verifyRequirements" description="Checks if the necessary requirements for building L2J are fulfilled">
- <available classname="javax.script.ScriptContext" property="JDK7.present" />
- <fail unless="JDK7.present" message="JDK 7 or greater is required." />
- </target>
- <target name="init" depends="verifyRequirements" description="Create the output directories.">
- <mkdir dir="${build}" />
- <mkdir dir="${build.classes}" />
- </target>
- <target name="compile" depends="init" description="Compile the source.">
- <javac destdir="${build.classes}" optimize="on" debug="on" source="1.7" target="1.7" nowarn="off" includeantruntime="false" >
- <src path="${src.scripts}" />
- <classpath refid="classpath" />
- </javac>
- </target>
- <target name="jar" depends="compile" description="Create the jar file">
- <jar destfile="${build}/l2f-commands.jar">
- <fileset dir="${build.classes}" >
- <include name="**/admincommands/**"/>
- </fileset>
- </jar>
- <delete dir="${build.classes}" />
- </target>
- <target name="build" depends="jar">
- <delete dir="${build.classes}" />
- </target>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment