Skip to content

Instantly share code, notes, and snippets.

@olamedia
Created July 2, 2013 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olamedia/5912443 to your computer and use it in GitHub Desktop.
Save olamedia/5912443 to your computer and use it in GitHub Desktop.
<project name="GraphicsCore" default="all">
<property name="jar.name" value="graphicsCore.jar" />
<property name="modloader.basedir" value="/home/olamedia/Документы/__OlaCraft/workspace/ola-modloader" />
<property name="modloader.srcdir" value="${modloader.basedir}/src" />
<property name="modloader.coremodsdir" value="${modloader.basedir}/coremods" />
<property name="jogl.classpath" value="/home/olamedia/Документы/__OlaCraft/LIBRARIES/jogl-jogamp/gluegen_614-joal_380-jogl_869-jocl_713/" />
<target name="all" description="Do the entire build" depends="run">
</target>
<target name="make.dirs" description="Make some dirs">
<mkdir dir="build" />
<mkdir dir="build/class" />
</target>
<path id="classpath">
<fileset dir="${jogl.classpath}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${modloader.basedir}">
<include name="**/*.jar" />
</fileset>
</path>
<path id="dependency-sources">
<fileset dir="${modloader.srcdir}">
<include name="**/*.java" />
</fileset>
</path>
<target name="compile-copy-jar" depends="jar">
<copy overwrite="yes" tofile="${modloader.coremodsdir}/${jar.name}" file="build/${jar.name}" />
</target>
<target name="compile" description="compile java" depends="make.dirs">
<javac target="1.6" listfiles="yes" fork="yes" executable="/usr/lib/jvm/java-6-openjdk-i386/bin/javac" includeantruntime="false" destdir="build/class" sourcepathref="dependency-sources" classpathref="classpath">
<src path="src" />
</javac>
</target>
<target name="run" depends="compile-copy-jar">
<exec dir="${modloader.basedir}" command="java -jar ${modloader.basedir}/modloader.jar">
</exec>
</target>
<target name="jar" description="make jar file" depends="compile">
<jar destfile="build/${jar.name}">
<fileset dir="build/class">
<include name="**/*.class" />
<exclude name="**/.git" />
</fileset>
</jar>
</target>
<target name="clean" description="clean up">
<delete dir="build" />
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment