🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1356

Re: Archive Wizard generates incorrect JAR files

#1356
From: Joi Ellis [TeamB]
Date: Wed, 30 Jan 2002 14:34
33 lines
2474 bytes
Richard Chrenko <richard@solarenergy.ch> wrote:
> In the Jbuilder4 Archive Wizard, I can successfully create a JAR file of
> type <application>. However, even using the settings "content"::"include
> required classes and known resources" and "dependencies"::"never include
> any classes and resources" in the JAR file properties menu, it sucks in
> the .class files from all other packages which the application
> references. This appears to invalidate the entire concept of modular JAR
> files (i.e. one JAR file per package and referencing these via the
> Class-Path tag in the <application> JAR file's manifest).

Whose concept is this?  I've never heard it before. 

> Is this a bug in Jbuilder4, or is there a way to prevent .class files
> from other packages being included in the <application> JAR file?

JBuilder's archive wizard assumes that it is to build a complete,
standalone jar from everything found in the project which is required
by its main class.  If there are references to other classes in the
project, those will be included.

The only way to create jars with a package-to-jar relationship like
you're talking about is so place each package into a project of its
own.  

Or use the jar utility manually and do it yourself.


-- 
Joi Ellis (TeamB)               http://www.teamb.com/
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html
Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID: <3c58047b_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail
References: <3C57A352.6788B633@solarenergy.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,c02176f8fd925de0
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-01-30 06:41:44 PST
Sender: Joi Ellis <joi@artoo.gyles19.visi.com>
Message-ID: <3c58047b_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Archive Wizard generates incorrect JAR files
Newsgroups: borland.public.jbuilder.java.api
References: <3C57A352.6788B633@solarenergy.ch>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.19-6.2.7 (i686))
NNTP-Posting-Host: 209.98.6.107
Date: 30 Jan 2002 06:34:36 -0800
X-Trace: dnews 1012401276 209.98.6.107 (30 Jan 2002 06:34:36 -0800)
Lines: 33
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail