On 13/02/2011, at 10:42 AM, Teo Hui Ming wrote:

> On Sun, Feb 13, 2011 at 2:50 AM, Peter Niederwieser <[email protected]> 
> wrote:
>> 
>> What are you trying to achieve? Do you have a Gradle build? Do you want to
>> use Gradle as a library?
> 
> Hi, I want to use it in usual Gradle build file. For instance,
> 
> build.gradle:
> --
> task downloadFile {
>   ant.get(src: '<url>', verbose:true)  // any Gradle equivalent?
> }

Not yet, though we do want to support something like this. Possibly, we might 
do this by allowing you to use a URL in a copy spec from statement:

copy {
    from 'http://some-resource'
    into 'build/tmp
}

Or, even more pervasively, allow a URL to be used to specify any input file:

checkStyle {
    configFile 'http://some-resource'
}

processResources {
    from('http://some-resource') {
        expand(prop: value)
    }
}


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz

Reply via email to