Hi

Is there a easy way to compare two source sets to see if the first has
changed since the second was generated?

For example, I have some java that is generated from corba idl. It
would be nice to be able to make an idl source set and a java source
set within the project, and only run the idl compiler if the most
recent mod time in the idl source is after the the earliest mod time
in the java source set. Another case I have is generating html
documentation pages from a xml schema. I would like to only have that
done when the schema changes as it is somewhat time consuming.

I am sure some small amount of groovy could accomplish this, but as
the concept of "use X to generate Y, but only if X is newer than Y"
seems a pretty fundamental concept in a build system and so I was
hoping that this was already solved in Gradle. It appears that Ant has
something similar in its "DependSet" but it seems to remove files
rather than giving a boolean comparison, or at least it is not clear
to me how to make use of it.

thanks,
Philip

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to