Open main menu

CDOT Wiki β

Changes

User:Minooz/RepoSyncProj/Ant

697 bytes added, 14:31, 14 October 2010
Tutorials
::This could be used in an attribute like this: ${builddir}/classes
::This is resolved at run-time as c:/test/classes
<source lang=java>
 
<project name="MyProject" default=“init" basedir=".">
<description> simple example build file </description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<target name="init">
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="comp-source ">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"/>
</target>
<target name="clean" description="clean up" >
<!-- Delete the ${build} directory tree -->
<delete dir="${build}"/>
</target>
</project>
</source>
==Tips==
1
edit