ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chad Loder <>
Subject javac always recompiles all files
Date Mon, 22 Jan 2001 23:24:26 GMT
Hello. I just downloaded ant and set up a simple
build.xml (included below). It appears that the javac
task is ALWAYS recompiling all the Java files, even
when none of them have changed.

Am I missing something really obvious? I made sure that
I touched all of the Java source files, just in case
they somehow had modification times in the future, but
Ant still compiles every time.


<project name="shared_java" default="all">
    <property name="build.type" value="debug"/>
    <property file="./build_${build.type}.properties"/>
    <property name="build.dir" value="_${build.type}"/>

    <target name="all" depends="compile">

    <target name="prepare">
       <mkdir dir="${build.dir}/classes"/>

    <target name="compile" depends="prepare">
       <javac srcdir="com" destdir="${build.dir}/classes" debug="on"
          deprecation="off" optimize="off"/>

View raw message