Re: OpenVMS javacvs client to Linux CVS server prob lem.
Milos Kleint <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Russell Taylor wrote:
> Thanks Milo,
> I set-up the cvsClientLogs which didn't really give me any extra clues,
well, It could give some clues to me ;) can you please send it to the
mailing list?
so
> I resorted to hard coding different values in the addArgumentRequests() in
> the BasicCommand. When I tried just the actual file name with no path which
> worked, Any ideas why this is?.
>
It's because of the OpenVMS paths probably that include the $,:,[,]
characters.. these are probably the troublemakers.. have you tried to
run netbeans IDE on the platform? does it work correctly?
Cheers.
Milos
> protected void addArgumentRequests() {
> if (files == null) {
> return;
> }
>
> for (int i = 0; i < files.length; i++) {
> final File file = files[i];
> System.out.println("BC: addArgumentRequests: file "+file);
> String relativePath = getRelativeToLocalPathInUnixStyle(file);
> //String relativePath = "/text/fts2/english";
> //relativePath =
> "DISK$EXTELDISK9:[fts_web_top.fts_test.fts_web.live.text.fts2.english]head.t
> xt";
> relativePath = "head.txt";
> System.out.println("BC: addArgumentRequests: relativePath:
> "+relativePath);
> requests.add(new ArgumentRequest(relativePath));
> }
> }
>
> Russ.
>
> -----Original Message-----
> From: Milos Kleint [mailto:[email protected]]
> Sent: 13 May 2002 12:54
> To: [email protected]
> Subject: Re: [javacvs-dev] OpenVMS javacvs client to Linux CVS server
> problem.
>
>
> Russell Taylor wrote:
>
>>Hi,
>> I've started to move my code across from Linux to OpenVMS and I seem to
>
> be
>
>>getting some directory issues. It looks like the server is confused (Intel
>>Mandrake 8.0, kernel 2.4.3 CVS 1.11) but why any help would be much
>>appreciated.
>>
>
>
> To be honest I have no idea what could be the problem, try executing the
> command-line cvs and log the protocol traffic by setting the
> enviroment variable CVS_CLIENT_LOG. the same is done for javacvs by
> setting the runtime variable -JcvsClientLog=<path> i believe.. comparing
> these two we could figure out more.. my first shot is that thet problem
> lies in the dollar sign character on the path.
>
> Milos
>
>
>
>>I believe I've traced it to the basiccommand.java where the
>>addArgumentRequests() happens. I'm calling my CVSClient code like this:
>>CVSClient cvs = new
>>
>
> CVSClient("/DISK$EXTELDISK9/fts_web_top/fts_test/fts_web/live/text/fts2/engl
>
>>ish/", "EXTEL$DEV_USERS/TAYLOR_R/", out, true);
>>where
>
> /DISK$EXTELDISK9/fts_web_top/fts_test/fts_web/live/text/fts2/english/
>
>>is the path to the directory of the file I'm trying to update and
>>EXTEL$DEV_USERS/TAYLOR_R/ is my home directory, both of these are being
>>found and cvs gets the cvspassword and finds the CVS/Repository.
>>
>>When I try to update the file an error returns stating the following:
>>MessageEvent getMessage String: cvs [server aborted]: absolute pathname
>>`/DISK$EXTELDISK9/fts_web_top/fts_test/fts_web/live/text/fts2/english/'
>>illegal for server
>>
>>I've tried hard coding the file in VMS format
>>
>
> DISK$EXTELDISK9:[fts_web_top.fts_test.fts_web.live.text.fts2.english]head.tx
>
>>t which returns this error:
>>MessageEvent setMessage String: cvs server: nothing known about
>>
>
> DISK$EXTELDISK9:[fts_web_top.fts_test.fts_web.live.text.fts2.english]head.tx
>
>>t
>>
>>This is the code in basiccommand.java that I hard coded the vms format
>
> path
>
>>to the file.
>> protected void addArgumentRequests() {
>> if (files == null) {
>> return;
>> }
>>
>> for (int i = 0; i < files.length; i++) {
>> final File file = files[i];
>> System.out.println("BC: addArgumentRequests: file "+file);
>> String relativePath = getRelativeToLocalPathInUnixStyle(file);
>> System.out.println("BC: addArgumentRequests: relativePath:
>>"+relativePath);
>> requests.add(new
>>
>
> ArgumentRequest("DISK$EXTELDISK9:[fts_web_top.fts_test.fts_web.live.text.fts
>
>>2.english]head.txt"));
>> //requests.add(new ArgumentRequest(relativePath));
>> }
>> }
>>
>>
>>Russ.
>>
>>