Skip to content

missing ant build file #1

@chriscamacho

Description

@chriscamacho

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions