On Sun, 2011-02-27 at 17:08 +0800, Niclas Hedhman wrote:
[ . . . ]
> Each Project;
>
> jar {
> manifest {
> name = "Qi4j Core Runtime"
> instruction 'Private-Package',
> 'org.qi4j.runtime;version=' + version,
> 'org.qi4j.runtime.bootstrap;version=' + version,
> 'org.qi4j.runtime.composite;version=' + version
> instruction 'Import-Package',
> 'org.qi4j.api.composite;version=' + version
> :
>
> (and applying the 'osgi' plugin)
Thanks for your thoughts, I'll cogitate on them a little more. However,
they were, I think, slightly tangential to my actual concern. This may
be because I didn't explain myself properly.
If I put all the bits and pieces explicitly in each project's jar
{ manifest { . . . } } then the sections are identical except for three
strings. This seems to me like a whole mass of replication that really
should be parameterized out to cut 80% of the code. The problem is that
the name resolution of Groovy appears to stop this from happening
easily; what I have not been able to find is examples of doing such
parameterization.
For now I will suffer having to have 80% of my build.gradle be the
manifest specifications :-(((
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected]
41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected]
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
