Skip to content

Instantly share code, notes, and snippets.

@luisenriquecorona
Created April 13, 2019 01:38
Show Gist options
  • Save luisenriquecorona/e223e37542bfd886f5eec007fcbee5c7 to your computer and use it in GitHub Desktop.
Save luisenriquecorona/e223e37542bfd886f5eec007fcbee5c7 to your computer and use it in GitHub Desktop.
Ant File build.xml When you run Ant, it produces a reasonable amount of notification as it goes: $ ant compile Buildfile: build.xml Project base dir set to: /home/ian/javasrc/starting Executing Target: init Executing Target: compile Compiling 19 source files to /home/ian/javasrc/starting/build Performing a Modern Compile Copying 22 support files…
<project name="Java jdk Examples" default="compile" basedir=".">
<!-- Set global properties for this build -->
<property name="src" value="."/>
<property name="build" value="build"/>
<!-- Specify the compiler to use.Using jikes is supported but requires rt.jar in classpath. -->
<property name="build.compiler" value="modern"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<!-- Specify what to compile. This builds everything -->
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"
classpath="../darwinsys.jar"/>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment