You are right. I got the one correctly. Thanx for the update.
rev
----- Original Message ----- 
From: Jon Skeet <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 13, 2001 8:08 PM
Subject: RE: Changing Directories


> Fileset in jar formation is working fine. But the package 
> structure is not
> stored in tha jar files. For example if i have the class files in
> com.a.b.c.*.class then only my class files are stored in the 
> jar while the
> path is not stored... How do i store the class files with the 
> package names in such a situation?

You create the fileset properly - the Jar task documentation has the
following example:

<jar jarfile="${dist}/lib/app.jar"
       basedir="${build}/classes"
       includes="mypackage/test/**"
       excludes="**/Test.class"
  />

note that the basedir is just the classes directory, not
classes/mypackage/test which is what I guess you've got.

> How can i execute a update command on the jar file like "jar 
> uvf ..." ?

Use the update property in Ant 1.4beta. (It's in Zip, which Jar
extends).

Jon

-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro Limited and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------

Reply via email to