Re: RE: How to checkout without having the module name in the output directory?
Milos Kleint <[email protected]> Tue, 27 May 2003 09:34:22 +0800
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Zsolt Koppany wrote:
>Hi Milos,
>
>I have added CheckoutCommand.setCheckoutDirectory(".") and now the module
>name will not be included into the name of the generated directories but all
>subdirectories will be included.
>
>
shouldn't you rather do setCheckoutDirectory("ut") according to your
previous example?
>I have tested cvs from shell and when I use the "-d" option, all files of
>the specified module "se/java/utils" will be copied into the directory I
>entered after "-d" and no subdirectories will be created.
>
>How can I fix it
>
>
if the library behaves differently then the cvs commandlin, it's most
probably a bug. I believe netbeans doesn't use this switch. you can file
it as a bug, with attached patch is definitely better.
if you would like to debug the code, here's a few hints.
first run the cvs command-line executable with enviroment variable
CVS_CLIENT_LOG holding a file. eg. on linux "export
CVS_CLIENT_LOG=/home/milos/cvslog". it will store client-server
communication in 2 files, one for input and one for output.
the library does the same thing by calling
System.setProperty("cvsClientLog", "<filepath>")
compare both the logs for differences, if there are some we need to send
different content to the server. if not, there's something wrong with
the way we process the response from server.
hope that helps.
Milos
>
>
>
>>-----Original Message-----
>>From: [email protected]
>>[mailto:[email protected]]On Behalf
>>Of Milos Kleint
>>Sent: Montag, 26. Mai 2003 04:32
>>To: [email protected]
>>Subject: Re: [javacvs-dev] RE: How to checkout without having the module
>>name in the output directory?
>>
>>
>>Zsolt Koppany wrote:
>>
>>
>>
>>>Hi,
>>>
>>>the command "cvs co -d ut se/java/utils" from shell creates the output
>>>directory "ut" and the contents of the module "se/java/utils"
>>>
>>>
>>will be stored
>>
>>
>>>into the "ut" directory and the module name "se/java/utils" will NOT be
>>>included into the checked out directory.
>>>
>>>
>>>
>>>
>>>How can I do the same with the CVS library?
>>>
>>>
>>>
>>the checkout command class has a property checkoutDirectory which should
>>do the "-d ut" part.
>>
>>Milos
>>
>>
>>
>>>Zsolt
>>>
>>>
>>>Zsolt Koppany
>>>Intland Software GmbH
>>>mailto:[email protected]
>>>Schulze-Delitzsch-Strasse 16
>>>D-70565 Stuttgart
>>>Phone: +49-711-7221873
>>>Fax: +49-711-7871017
>>>
>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: [email protected]
>>>For additional commands, e-mail: [email protected]
>>>
>>>
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [email protected]
>>For additional commands, e-mail: [email protected]
>>
>>
>>
>>
>
>
>