Paste: my build.xml

Author: Rex
Mode: xml
Date: Wed, 23 Feb 2011 01:36:18
Plain Text |
<project name="openflight" default="dist" basedir=".">
    <description>
        OpenFlight Ant Build File
    </description>
  <!-- set global properties for this build -->
  <property name="version" value="0.57"/>
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="dist"  location="dist"/>

  <target name="init">
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
        
    <!-- Compile from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}" includeantruntime="false">
    	<classpath>
        	<pathelement location="lib/jogl-all.jar"/>
        	<pathelement location="lib/gluegen-rt.jar"/>
        </classpath> 
        
    </javac>
  </target>

  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the dist -->
    <mkdir dir="${dist}"/>

    <!-- Make the jar file -->
    
     <jar basedir="${build}" jarfile="${dist}/openflight-${version}.jar" manifest="openflight.manifest" update="true"/>
  </target>

  <target name="clean"
        description="clean up" >
    <!-- Delete the ${build} dir (dist is left for images dir) -->
    <delete dir="${build}"/>
  </target>
</project>

New Annotation

Summary:
Author:
Mode:
Body: