You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Bill Carey <bi...@hotmail.com> on 2001/09/23 19:27:42 UTC
Newbie question: Multiple UnJars.
Hi,
I appologize if I'm sending this message to the list twice, but I'm
using a brain-dead web MUA and I'm not sure if the original went out.
I'm an ANT newbie and I'm trying to unjar a set of jar files in a given
directory and then jar them into a single big jar. Unfortunately, the Unjar
task only takes a single file as an arg and I have no a priori knowledge as
to what jars will be in the source directory. It seems I could use SCRIPT
in the optional tasks distribution, but I'm concerned I'd lose portability
if I embedded say PERL in the build config. I think there's probably a way
to do this using AntCall(), but I've been unable to figure how. I also
looked briefly at writing my own task, but the ANT API docs haven't been
cooked yet. Can anyone provide me with some pointers on the best way to do
this?
Thanks in advance,
Bill
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
RE: Newbie question: Multiple UnJars.
Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Bill,
A couple of things.
If source is a directory, unjar will expand all files in the directory. This
will work in Ant 1.4 but will try to expand everything in the directory. The
preferred solution in future will be to add fileset capability to
expand.java (the class that actually provides unjar).
The API docs should be included in your Ant distribution. I have not loaded
them onto the website. Do people want the API docs on line.
Conor