ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Rich" <>
Subject RE: IDL always re-compiles in build
Date Wed, 29 Jun 2005 04:45:04 GMT
Here is a sample for handling JavaCC that I use. It is similar to what you
want for IDL.
<target name="grammercheck"
  description="Check for updates to the Java Grammer file.">
  <uptodate property="grammerUpToDate"

<target name="jjtree"
  depends="grammercheck" unless="grammerUpToDate"
  description="Make the classes for the JavaCC Tree for the Java Language.">
  <mkdir dir="${src.dir}/${}/gen"/>
  <java classname="jjtree"
    <classpath refid="classpath.jcc"/>
    <arg line="-OUTPUT_DIRECTORY=${src.dir}/${}/gen"/>
    <arg line="${src.dir}/${}/java1.4.jjt"/>
  <delete file="${src.dir}/${}/gen/"/>

HTH Bill

-----Original Message-----
From: Jeffrey E Care [] 
Sent: Tuesday, June 28, 2005 8:31 PM
To: Ant Users List
Subject: Re: IDL always re-compiles in build

You may be able to use the <uptodate> task to set a property & use
conditional target execution based on that property.

Jeffrey E. Care (
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)

David Calkins <> 
06/28/2005 10:03 PM
Please respond to
"Ant Users List"


IDL always re-compiles in build

I'm using the JacORB IDL compilation task jacidl.  Unfortunately, it 
recompiles the IDL everytime I initiate a build, despite the IDL not 
having changed, which of course forces recompilation of the generated 
Java sources.

Is there any way to configure the build file so it won't think it needs 
to re-compile the IDL unless the IDL file is newer than the generated 
Java source?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message