ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Bodnar" <>
Subject Help with <uptodate>
Date Tue, 25 Mar 2003 22:13:14 GMT
I'm trying to use <uptodate> to determine whether to run a zeus task or not. I
want to see if the dtd file zeus uses is newer than the .java files zeus last
generated. I have the following in my build.xml:

<!-- decide if we need to run the zeus task -->
<target name="configUptodate" depends="init" 
             description="Update config classes if the dtd has changed">
  <uptodate property="dontRunZeus" srcfile="config.dtd" 

<target name="zeus" depends="configUptodate" unless="${dontRunZeus}" 
	description="make zeus classes">
  <zeus destDir="${src}">
    <constraint type="DTD" constraintFile="config.dtd" 

But the zeus target is always getting run even though the dtd is older than

What am I doing wrong?



Jason Bodnar

"You want free speech? Let's see you acknowledge a man whose words make
your blood boil who is standing center stage advocating at the top of
his lungs that which you would spend a lifetime opposing at the top of
yours." -- President Andrew Shephard, "The American President"

View raw message