Article View: borland.public.jbuilder.java.api
Article #1123Re: How to make packages ?
From: Joi Ellis [TeamB]
Date: Sun, 12 May 2002 02:41
Date: Sun, 12 May 2002 02:41
52 lines
3088 bytes
3088 bytes
Vincent DOYELLE <vdoyelle@yahoo.fr> wrote: > Joi Ellis [TeamB] wrote: >>> Is there a way to store once only and make my 2 projects referencing this >>> single store ? If yes, how ? >> >>> I think this can be done via packages but I don't know how to create one >>> and whre to store it. >> >>> TIA for giving me the way to do this. >> >>> I'm using JB 5.0 ent on RH 7.1 >> >>> Projects are stored in jbproject/NetWatch and jbproject/Agent (top >>> directories). >> >> Pretend your two projects are 3rd party libraries, and see here: >> >> http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=104 >> >> > Thanks Joi for this response to my second interrogation (where to store > it). > Maybe, Is it a stupid question : > how can I create a package with these classes : should I make another > project with these common classes and after create a packege (if yes, how) > or is there any ohet solution ? You can take (at least) two approaches. One is to leave the shared classes in one project, delete them from the second, and define a library using the first project's paths, then add that library to the second project's required libraries list. The extra classes in the packages of the first project won't interfere with the second project unless you have some naming conflicts between the two projects. Another is what you're thinking of trying: pull the common classes out of both projects and put them into a third. Define a library using the third project's paths, and then place that library in both of the original project's required libraries lists. Be sure to check that the classes path in the various projects do not contain stale copies of the original class files, otherwise JBuilder's behavior will get very confusing. -- 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:
<3cddd649_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mailReferences:
<3cdd5870_2@dnews> <3cdd623a_2@dnews> <3cdd87b8$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,a3d91cc173d8399a
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-05-11 20:04:32 PST
Sender: Joi Ellis <joi@artoo.gyles19.visi.com>
Message-ID: <3cddd649_1@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: How to make packages ?
Newsgroups: borland.public.jbuilder.java.api
References: <3cdd5870_2@dnews> <3cdd623a_2@dnews> <3cdd87b8$1_2@dnews>
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.2.19-6.2.7 (i686))
NNTP-Posting-Host: 66.134.231.90
Date: 11 May 2002 19:41:13 -0700
X-Trace: dnews 1021171273 66.134.231.90 (11 May 2002 19:41:13 -0700)
Lines: 52
X-Authenticated-User: jellis
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail