I think I faced the same kind of issue when I developed a <jaxb> task
(posted to BugZilla). To know whether generation or re-generation is
necessary, you do need to know which files will be generated. This usually
requires intimate knowledge of the process wrapped in a task. In my case, it
would have required parsing a schema file, and understand all various ways
the class generation was going to affect which files are generated
(renaming, etc...). This is too complex.

I ended up looking a posteriori at what files had been generated (in an
empty dir), recording (caching) their timestamps (and sizes and checksums).
Next time, if the source document is newer than any of the files generated,
re-generation needs to happen again. But also, if the source document has
not changed, but any of the generated files had been modified, or is missing
(or if I cannot find the cache file), then re-generation is also necessary.

This approach has worked well for me, and it sounds it could work for you.
Unless you want to go in the business of parsing IDL files that is ;-)

I hope that helps, --DD

-----Original Message-----
From: Erik Putrycz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 05, 2003 10:08 AM
To: Ant Developers List
Subject: Re: CORBA IDL uptodate checking

Thanks for help !

> u mean the name of the generated files or the location of the generated
files ?

I would like to have a way to know the name of the generated files from an
idl file.
So that I could use the Ant classes for uptodate checking.

Reply via email to