On 19/03/2011, at 1:47 AM, Steve Ebersole wrote:

> I have the following copyspec:
> 
> releaseCopySpec = copySpec {
>  into( "hibernate-release-$project.version" ) {
>    into('lib/required') {
>        ...
>    }
>    ...
>    [ 'hibernate-c3p0', 'hibernate-proxool', ... ].each { feature ->
>        final String shortName = feature.substring( 'hibernate-'.length() );
>        into('lib/optional/' + shortName) {
>            ...
>        }
>    }
>  }
> }
> 
> Everything correctly gets placed into "hibernate-release-$project.version" 
> except for the work done in the "feature" closure.  The stuff done in the 
> closure goes into lib/optional in the *root* of the archive.  As a counter-
> example, the lib/required stuff correctly goes into hibernate-
> release-$project.version/lib/required.
> 
> Is this expected?

No. I'd expect everything to end up under "hibernate-release-$project.version". 
 Could you add a jira issue for this?

I need to dig a bit more to figure out what's going on here, but a quick work 
around is to use owner.into in your "feature" closure:

owner.into('lib/optional/' + shortName)


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
Co-Founder and VP of Engineering, Gradleware Inc. - Gradle Training, Support, 
Consulting
http://www.gradleware.com

Reply via email to