On Jun 11, 2009, at 5:31 AM, Helmut Denk wrote:


hi gradle,

one thing, that could be useful IMO
is a retrieve-command that supports
switching from ivy/maven-repositories
to flatDir.

in ant+ivy it is like this:


*** snip ***
ivy.retrieve.pattern=${lib.dir}/[conf]/[artifact].[ext]

<ivy:retrieve pattern="${ivy.retrieve.pattern}"/>
*** snap ***


the default-behaviour of a command 'gradle retrieveLibs'
would fetch dependent artefacts into the /lib dir so that
a switch to:


repositories {
   flatDir(dirs: file('lib'))
}

One way of solving this is to define a rule with the pattern: retrieve<dirname>
This would copy the testRuntime configuration into <dirname>.

Two future features would make this more powerful.
- Make it easy to create custom task types (which would be instatiated by the rule) - Make it possible to set a task property via the command line (e.g. for changing the configuration).

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


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

   http://xircles.codehaus.org/manage_email


Reply via email to