Hans Dockter wrote:
I have submitted a new feature which allows a configuration to return the dependency files only for a subset of the dependencies belonging to this configuration.

configuration.files(someSpec) or with lazy resolving:
configuration.fileCollection(someSpec) // I could not come up with a better name than fileCollection. I'm very happy to hear about a better name.

The names need to reflect that you want the files from the configuration, filtered to just those required by the specified dependencies.

configuration.filter(someSpec)
configuration.subset(someSpec)
configuration.forDependencies(someSpec)

I'd be tempted to get rid of the files(someSpec) methods. To me, they don't feel like they are worth the weight they add to Configuration.

Some places where we should use this method:
- The code in AntTestNGExecute which goes looking for the testng jar. It should get the files for the testng dependency instead. - The groovy configuration. We should merge this into the compile configuration, and get the files for the groovy dependency instead.
- The 'ide' tasks in our build files.



Adam

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

   http://xircles.codehaus.org/manage_email


Reply via email to