Hi all,
I notice in my googling that there used to be a remapTarget directive of the
Copy (and probably zip) tasks.
That has since been removed, and while some have said some version of it
will reappear
http://gradle.1045684.n5.nabble.com/CopySpec-remapTarget-is-gone-td1436423.html
I haven't really seen something that I recognize as something that will do
the flattening of directory structure that I need.
Is it possible now? Or not? If not, will this be a future feature to
reintroduce itself into gradle sometime soon?
Basically, I have a folder
/mnt/somepath/dataexport/proj.jar
I know the path 'mnt/somepath'
and I know the name of the file I want 'proj.jar'
but the path beyond that, 'dataexport' in this case, is unknown at
development time.
So, in order for me to get the jar files I want, I specify my Zip task from
like this:
distCopy.from(fromDir.getAbsolutePath()){
include "**/" + fromRootDir.getName() + ".jar"
}
However, now in my Zip file, I end up with a directory structure:
ZIP:/dataexport/proj.jar
where as, I just want:
ZIP:/proj.jar
Is this possible?
thanks in advance
sean
p.s, i'm using
Gradle 1.0-milestone-3