Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / February 2006

Tip: Looking for answers? Try searching our database.

jar.exe -  preventing recursive directory contents

Thread view: 
VisionSet - 12 Feb 2006 17:30 GMT
say I have a package structure

base/
base/suba
base/subb

I want to create a jar with the contents of base and base/suba
but jar only wants to do it recursively so

jar cfm ..\server.jar manifest.mf base\ base\suba\

will include base/subb

any way around that?

The -C option is no good since it destroys the package structure

TIA
--
Mike W
Rob Skedgell - 12 Feb 2006 17:59 GMT
> say I have a package structure
>
[quoted text clipped - 12 lines]
>
> The -C option is no good since it destroys the package structure

Try the following, which should include files under base with
extensions, and everything under base\suba but no other directories
under base:
jar cfm ..\server.jar manifest.mf base\*.* base\suba\

Signature

Rob Skedgell <rob+news@nephelococcygia.demon.co.uk>
GnuPG/PGP: 7DA3 1579 C0DD 8748 C05A  B984 E2A2 3234 D14B 6DD7

VisionSet - 12 Feb 2006 18:48 GMT
> Try the following, which should include files under base with
> extensions, and everything under base\suba but no other directories
> under base:
> jar cfm ..\server.jar manifest.mf base\*.* base\suba\

Thanks that works great, sort of obvious really, but it'd be nice to see it
documented somewhere!

--
Mike W


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.