Prevent gradle from temporary directory usage on unpack


(Vlad Slepukhin) #1

Hi,

I have some file, which is downloaded in .tar.gz format and it has to be unpacked. I use the following task:

task copyFixpack(type: Copy) {
    from tarTree(resources.gzip('fixpack.tar.gz'))
    into file("$System.env.BASE_DIR")
}```

The current problem I have is that Gradle unpacks it to some internal directory and only then moves to destination. The file is big, around 10-15 gigs, when unpacked, so it's not desired to move such amount. Is there any way (except calling `tar`) to handle it?