BasicLighting icon indicating copy to clipboard operation
BasicLighting copied to clipboard

missing ant build file

Open chriscamacho opened this issue 11 years ago • 1 comments

last time i did a pull request it was a thorough pain in the arse to work out how to do... for something simple like this I might as well post it here...

build.xml

ant build/run file
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="lwjgl" location="lwjgl-2.9.1/jar"/>

<target
    name="clean" description="removes all classes" >
    <delete>
        <fileset dir="${src}" includes="**/*.class"/>
        <fileset dir="${bin}" includes="**/*.class"/>
    </delete>
</target>

<target 
    name="compile" description="compile the source " >
        <fileset dir="${src}" includes="**/*.class"/>
    <javac 
        srcdir="${src}" destdir="${bin}"
        classpath="${lwjgl}/lwjgl.jar:${lwjgl}/lwjgl_util.jar"
        includeantruntime="false"
        debug="on" debuglevel="lines,vars,source" >
        <compilerarg value="-Xlint:all" />
        <compilerarg value="-Werror" />           
    </javac>
</target>

<target
    name="run" depends="compile"
    description="runs the project compiling if needed" >
    <java
        fork="true" classname="Main"
        classpath="bin:${lwjgl}/lwjgl.jar:${lwjgl}/lwjgl_util.jar" >
            <sysproperty key="java.library.path" value="lwjgl-2.9.1/native/linux/"/>
    </java>
</target>

chriscamacho avatar Feb 05 '14 09:02 chriscamacho

btw as there is still no p2p coms on git hub chrisSPAM AT bedroomSPAMcodersSPAM fullstop co dotty uk

chriscamacho avatar Feb 05 '14 09:02 chriscamacho