Thank you.
Unfortunately so far it didn’t help all that much, but I will continue trying to figure out it when I get back from uni tonight.
I managed to create an ant build script (at least I think I did) with eclipse,
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="TowerBone">
<property environment="env"/>
<property name="ECLIPSE_HOME" value="../../eclipse"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<path id="TowerBone.classpath">
<pathelement location="bin"/>
<pathelement location="libs/gdx-backend-lwjgl-natives.jar"/>
<pathelement location="libs/gdx-backend-lwjgl-sources.jar"/>
<pathelement location="libs/gdx-backend-lwjgl.jar"/>
<pathelement location="libs/gdx-natives.jar"/>
<pathelement location="libs/gdx.jar"/>
<pathelement location="libs/lwjgl_util_applet.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="TowerBone.classpath"/>
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
<copy todir="${ant.library.dir}">
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</copy>
<unzip dest="${ant.library.dir}">
<patternset includes="jdtCompilerAdapter.jar"/>
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</unzip>
</target>
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
<antcall target="build"/>
</target>
<target name="Starter">
<java classname="com.struc.td.Starter" failonerror="true" fork="yes">
<classpath refid="TowerBone.classpath"/>
</java>
</target>
</project>
But I don’t know how to use it… When I run it it will just say "
Buildfile: D:\Software Engineering\TowerBone\build.xml
build-subprojects:
init:
build-project:
[echo] TowerBone: D:\Software Engineering\TowerBone\build.xml
build:
BUILD SUCCESSFUL
Total time: 160 milliseconds
So I figured perhaps it was just something that tries to compile the project and tells if it works or not, so then I replaced my main method with something that would cause an error (I just randomly wrote a couple of letters, like “new LwjglASDREASDApplication(…)”. And ran the build script and it still said the exact same thing. Can someone explain?