On Tuesday 06 April 2010 15:03:54, Hans Dockter wrote:
> On Tue, Apr 6, 2010 at 11:45 AM, Geronimo M. H. <[email protected]>wrote:
> > Is that function-style task (?) only available for 'copy' or what am I
> > missing?
>
> Yes. We simply haven't gotten around yet to provide similar methods for
> jar/tar/zip.
Ok, thanks for this statement.
> ... It is hard to figure out what goes into the archive
> from looking at the build script. This technique is often used because of
> limitations of the build systems. With the Gradle archive API this is no
> longer an issue. Thus usually the archive should declare what goes in it.
You're totally right - that's why I'm experimenting with the archive tasks.
Currently I've several perl-scripts involved in the build process and I try to
replace them by gradle, or integrate them into the build process.
Well - not every script makes sense to convert to gradle, cause the
startup-time of gradle is quite notable. Just to give you an idea of the time
differences: when I call the perlscript to assemble all my webpages
(currently 34 pages) perl takes 0.3s where as the same job with gradle takes
9s
With some archives, there's no problem to build them without temporary copy.
What I didn't found out yet, how I could integrate a jar from another local
project, that is related by dependency only. That's the point, where gradle
renames jarfiles, so I extended the jar-task of each project by a
copy-action.
So if there's a way, to fetch jarfiles without any chance of changing the
original filename, I surely can live without any copy.
But it has to be true, that I get the latest build, no an outdated jar from
internal cache ...
Another point, I'm missing for jar-assembling has to do with legal stuff:
To conform different licenses of dependant libraries, I currently have this
repository layout:
3rdParty
commons
license.txt
commons-logging.jar
jgoodies
license.txt
bindings.jar
...
so when I use dependency copiing, I loose the layout and of cause I loose the
license files. I could copy my repository, but than I don't have dependency
support of gradle. Currently I don't know, how to solve this the gradle way.
kind regards
Geronimo
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email