On Mon, Mar 7, 2011 at 3:11 PM, Peter Niederwieser <[email protected]>wrote:

>
> Brett Cave wrote:
> >
> > This is not working either:
> >
> > task extractTar << {
> >   copy {
> >    from tarTree('hardcoded/path/to/archive.tar')
> >    into buildDir
> >   }
> > }
> >
>
> I've tried the exact same code, and it works fine for me. Note that your
> "from" path is relative to the project directory. Gradle doesn't issue an
> error if the path doesn't exist.


I was using the following from: from
tarTree("$buildDir/some-archive-2.0.0-SNAPSHOT.tar")
some-archive-2.0.0-SNAPSHOT.tar was in my build directory.

It started working as expected once I deleted everything in ~/.gradle/cache
(not sure which file was responsible for this).



My buildDir is non-default ("target/gradle-build"), and the tar file is
there.


>
> --
> Peter Niederwieser
> Developer, Gradle
> http://www.gradle.org
> Trainer & Consultant, Gradleware
> http://www.gradleware.com
> Creator, Spock Framework
> http://spockframework.org
>
>
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/extracting-tar-contents-via-dependencies-tp3412210p3412412.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>


-- 
Brett Cave
Systems Architect
Jemstep, Inc

www.jemstep.com

Reply via email to