Boost logo

Boost-Build :

From: Klaus Nowikow (klaus.nowikow_at_[hidden])
Date: 2006-05-17 17:05:48


I am trying to create a generator for creating jar files.
It should be used like this:

<code>
jar tgt : a.foo sub1/b.bar sub2/c.baz ;
</code>

This should create the file tgt.jar

I tried several things, but the most promising way (for me)
was this:

<code>
actions jar
{
   7z a -y -tzip $(>) $(<)
}
</code>

But this does not do anything.

[7z is just the program I currently use for creating zip/jar files
from the command line on Windows; in the long run one should create
toolsets to be able to use different programs there]

I also tried something like this:

<code>
import type ;
type.register JAR : jar ;

import generators ;
generators.register-composing jar.jar : ??? : JAR ;
actions jar
{
   7z a -y -tzip $(>) $(<)
}
</code>

but then I did not know what to give as the source type where
I put the '???', because the jar archive could contain any file type.

I am really at a loss. Any suggestions?

Best regards,

Klaus


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk