try:

if="runZeus"

If i remember correctly, it expects a property name,
it will automatically dereference it.

----------------
Matthew Inger [inger@synygy.com]
Software Developer
Synygy, Inc
610-664-7433 x 7770
"Self Respect - The secure feeling that no one, as yet,
 is suspicious" - HL Mencken


-----Original Message-----
From: Jason Bodnar [mailto:jason@shakabuku.org]
Sent: Tuesday, March 25, 2003 5:51 PM
To: ant-contrib-developers@lists.sourceforge.net
Subject: [Ant-contrib-developers] RE: Help with <outofdate> (was
<uptodate>


On Tue, 25 Mar 2003 16:12:15 -0600, Dominique Devienne wrote
> I strongly advise you to use <outofdate> from Ant-contrib instead ;-)

Advise taken. But now my zeus task never runs no matter what the timestamps of
the source and target files. I now 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">
 <outofdate property="runZeus">
  <sourcefiles>
   <pathelement location="config.dtd"/>
  </sourcefiles>
  <targetfiles>
   <pathelement path="${src}/com/broadq/qcaststation/config"/>
   <fileset dir=".">
    <include name="**/*.java"/>
   </fileset>
  </targetfiles>
 </outofdate>
</target>

<target name="zeus" depends="configUptodate" if="${runZeus}"
        description="make zeus classes">
 <zeus destDir="${src}">
  <constraint type="DTD" constraintFile="config.dtd"
              collapseSimpleElements="true"
              javaPackage="com.broadq.qcaststation.config"/>
 </zeus>
</target>

--
Jason Bodnar
jason@shakabuku.org
http://www.shakabuku.org

"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"


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Ant-contrib-developers mailing list
Ant-contrib-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ant-contrib-developers