Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing ant build file #1

Open
chriscamacho opened this issue Feb 5, 2014 · 1 comment
Open

missing ant build file #1

chriscamacho opened this issue Feb 5, 2014 · 1 comment

Comments

@chriscamacho
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant