See <uptodate> and/or <dependset> in Ant proper. See also <outofdate> which
was discussed very recently on [EMAIL PROTECTED] and was just committed to
Ant-contrib's (on sf.net) CVS HEAD. Finally, see also <jaxb> submitted to
Ant's BugZilla DB which you might want to adapt to work with Castor instead
of Jaxb. --DD

-----Original Message-----
From: Pedro Salazar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2003 10:54 AM
To: [EMAIL PROTECTED]
Subject: task depends on file changes...

Greetings,

I would like to know if is it possible make the execution of a task
depends on the changes of a specific non java file, XML for instance?

My readings of <depend> element is that it won't work here because it
only cares about the references encoded in the classes files to
determine the relation of java sources and classes.

What I need here is that before I try to find out if I would need to
recompile my sources, I would like to see if I need to regenerate my
sources files or not, through the changes on a XML file.

My real need is for CASTOR references. If I change my schema file (XML),
I want to regenerate my java sources bindings for that schema. 

Is there any ant task that could apply here to fulfill my needs?

thanks,
Pedro Salazar.
-- 
<id name="pedro salazar"> 
<email>[EMAIL PROTECTED]</email>
<pgp-key-id>0E129E31D803BC61</pgp-key-id>
</id>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to