On 29/04/2011, at 3:28 AM, Andrew Schetinin wrote:
> Hi Rene,
>
> Thanks for the ideas.
>
> The input files are not specified in the configure phase, because my input
> file is actually an artifact (a very large one) that has to be downloaded
> first. I don't want to download it during the configure stage, and that's
> what happens if I attempt to specify it as an input file there. Probably I
> should do it in a different way. I've found some example that looked like the
> following:
>
> configurations {
> artifactFiles
> }
>
> dependencies {
> artifactFiles 'com.company.module:module:1.0.0@war'
> }
>
> task {
> inputs.files
> configurations.artifactFiles.resolvedConfiguration.resolvedArtifacts
> }
You can do this, instead:
task{
inputs.files configurations.artifactFiles
}
This way, the files aren't downloaded until the task executes.
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com