ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suu Quan" <>
Subject Why does <javac> recompile even source not modified?
Date Mon, 21 May 2001 21:30:30 GMT
In my attempt to understand javac, I have set a task to compile a few java
in a package util.* (project name is 'stp')

<target name='utils'>
  <javac srcdir="/stp/utils" destdir='/stp'
      includes='*.java' verbose='yes'
The first compile went OK. The subsequent times I ran ant again, it does
all the class files.
Note that each java file has the declaration 'package utils;' in them.

Sample output for one file
    [javac] [checking utils.MediatedThreadIf]
    [javac] [wrote C:\stp\utils\MediatedThreadIf.class]

What did I do wrong
Thanks in advance

View raw message