On 28/10/2010, at 10:38 AM, Roger Studner wrote:
>
> I guess basically what i'm asking is this:
>
> if I have some subprojects
>
> toplevel/
>
> a/
> build.gradle
> /js
> b/
> build.gradle
> /someFiles
> aFile.js
>
> can I, in the build.gradle for "a" do a copy task, that the "from" is like:
>
> from ':toplevel:b:someFiles'
> to '/js' //in a
> include '**/*.js'
You could do something like:
task copy(type: Copy) {
from project(':b').file('someFiles') // or just: from '../b/someFiles'
into 'js'
include '**/*.js'
}
For a task defined in project 'a', the paths are interpreted relative to the
project dir of project 'a', so for example, the 'js' ends up being
'toplevel/a/js'
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz