Skip to content

Instantly share code, notes, and snippets.

@tedheich
Created November 22, 2009 13:19
Show Gist options
  • Save tedheich/240561 to your computer and use it in GitHub Desktop.
Save tedheich/240561 to your computer and use it in GitHub Desktop.
Basic ant build file
<?xml version="1.0"?>
<project name="Your Project Name" default="compile" basedir=".">
<property name="src" value="src"/>
<property name="lib" value="lib"/>
<property name="build" value="build"/>
<path id="classpath.base">
<pathelement location=""/>
<pathelement location=""/>
<pathelement location=""/>
</path>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="compile">
<javac srcdir="${src}" destdir="${build}">
<classpath refid="classpath.base"/>
</javac>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment