Hello,
Using the jar task in ant.1.4.1 I am missing the top level dir
from the paths in the jar. For example if I have files and dirs like
this:-
.
./base
./base/sub
./base/sub/file1.class
./base/sub/file2.class
Then in . I run jar cf ajar.jar base
then jar tf ajar.jar we see :-
META-INF/
Try:
jar jarfile=ajar.jar basedir=. includes=base/
You might have to play with the excludes directive also.
-Original Message-
From: Roger Marlow [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 11:00 AM
To: [EMAIL PROTECTED]
Subject: Missing top level dir in jar file
On Thu, 6 Dec 2001, Marko Srdanovic [EMAIL PROTECTED] wrote:
Try:
jar jarfile=ajar.jar basedir=. includes=base/
this would only include the directory base and nothing else, it should
probably be
jar jarfile=ajar.jar basedir=. includes=base/**/
Stefan
--
To unsubscribe, e-mail:
Oops, that's what you get when you don't test things first - Thanks! ;-)
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 11:05 AM
To: [EMAIL PROTECTED]
Subject: Re: Missing top level dir in jar file
On Thu, 6 Dec 2001, Marko
Try:
jar jarfile=ajar.jar basedir=. includes=base/
this would only include the directory base and nothing else, it
should probably be
jar jarfile=ajar.jar basedir=. includes=base/**/
Unfortunately that just looks for the files under base. There's
only a directory there, so it
On Thu, 6 Dec 2001, Roger Marlow [EMAIL PROTECTED] wrote:
Try:
jar jarfile=ajar.jar basedir=. includes=base/
this would only include the directory base and nothing else, it
should probably be
jar jarfile=ajar.jar basedir=. includes=base/**/
Unfortunately that just looks for
PROTECTED]]
Sent: Thursday, December 06, 2001 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: Missing top level dir in jar file
On Thu, 6 Dec 2001, Roger Marlow [EMAIL PROTECTED] wrote:
Try:
jar jarfile=ajar.jar basedir=. includes=base/
this would only include the directory base and nothing
Try:
jar jarfile=ajar.jar basedir=. includes=base/
this would only include the directory base and nothing else, it
should probably be
jar jarfile=ajar.jar basedir=. includes=base/**/
Unfortunately that just looks for the files under base.
and recursively below
--- Matt Lyon [EMAIL PROTECTED] wrote:
A quick question on recursion. Just out of curiosity, is there any
difference between ** and **/* in Pattern Sets?
See the Example patterns table in the Directory-based Tasks section of
the user manual.
Diane
=
([EMAIL PROTECTED])