🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JBuilder 4 not saving JAR filepath

#1148
From: Joi Ellis [TeamB]
Date: Mon, 27 May 2002 13:23
71 lines
4040 bytes
Richard Chrenko <richard@solarenergy.ch> wrote:
> Running JBuilder4 Professional Build 4.0.147.0 under Windows 2000
> Professional, I discovered that there are 2 cases.

> *** CASE 1 ***
> If I exit JBuilder with the project still loaded, everything is fine and
> the JAR filepath is saved correctly to the .jpx file which contains the
> following entries:
>     <node type="Archive" name="myProject" />
>     <property category="archiving" name="targetPath"
> value="lib/myProject.jar" />

I see this in both JB4 and JB6.

> *** CASE 2 ***
> If the project is specifically closed while JBuilder is running, the JAR
> filepath is not saved to the .jpx file which contains only the following
> entry:
>     <node type="Archive" name="myProject" />
> Interestingly, if JBuilder remains running and I reopen the project, the
> JAR filepath is still present (cached?), but after closing and reopening
> the project a second time the JAR filepath is gone. Hmmm....

I can't reproduce this in either JB4 or JB6.  Could you please provide
specific instructions-for-dummies steps for reproducing this?

I did this:

Launch jbuilder
Using current project (which happens to be source for an opentool)
Wizards | Archive 
... | New Folder | lib | lib/ot2.jar
File | Exit
Save modified file? (yes)

Upon editing the jpx file, the property lib/ot.jar is present as expected.

Is your JB4 noticing that the jpx file has been modified when you exit?
Mine is.  If yours isn't, that might account for the property going missing.


> "Joi Ellis [TeamB]" wrote:
>> 
>> Richard Chrenko <richard@solarenergy.ch> wrote:
>> > I can add a JAR file to my JBuilder4 project using the JAR Wizard, and
>> > everything works properly. However, after closing and restarting
>> > JBuilder, the JAR cannot be written since the filepath has disappeared.
>> > How can I force JBuilder to save the JAR filepath, for example to the
>> > .jpx file?
>> 
>> I presume you mean the jar node's Properties | File attribute is getting
>> lost?  If that's what you mean, please describe your machine's environment
>> in more detail, because my jar nodes have never lost their File setting.
>> I do write all of mine into the project directory, not someplace else,
>> though.  In my jpx file, their 'TargetPath' property contains only the
>> file name, something like "blah.jar" but without the path.
>> 
>> --
>> 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.


-- 
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: <3cf2336e_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail
References: <3CEE01F6.62D1F3F1@solarenergy.ch> <3cee5006_2@dnews> <3CF1D9C1.F2A3AB2@solarenergy.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,a5daa24cb16e1cf3
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-05-27 06:39:30 PST
Sender: Joi Ellis <joi@h-66-134-231-90.CHCGILGM.covad.net>
Message-ID: <3cf2336e_1@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: JBuilder 4 not saving JAR filepath
Newsgroups: borland.public.jbuilder.java.api
References: <3CEE01F6.62D1F3F1@solarenergy.ch> <3cee5006_2@dnews> <3CF1D9C1.F2A3AB2@solarenergy.ch>
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: 27 May 2002 06:23:58 -0700
X-Trace: dnews 1022505838 66.134.231.90 (27 May 2002 06:23:58 -0700)
Lines: 71
X-Authenticated-User: jellis
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail