Re: Re: Checkout error! Possible Bug?
"Jemerson Damasio" <[email protected]> Tue, 30 Sep 2008 15:03:17 -0300
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_31638_28875105.1222797797577
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
After a week out of the problem I'm back now. Despite of it, I saw some
examples and everyone uses the setFile of the CheckoutCommand just like I
do. But for me it doesn't work.
Well, at least it doesn't do what I expect. Ok. Let me understand. Through
this method I should be able to specify which files I wanna checkout, right=
?
I've also tryied command.setCVSCommand('F', "DesiredClass.java"), but it
also doesn't work. Both always extracts everything into the cvsroot
directory.
My doubt is simple: does it works? Has anyone ever used this and faced this
problem?
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
Jemerson Figueiredo Damasio
Bacharel em Ciencia da Computacao - UFCG
Pesquisador do CNPq/GMF - UFCG
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
On 23 de septiembre de 2008 18:01, Jemerson Damasio <[email protected]>w=
rote:
> First, thanks for solving my problem. It works! =3DD
> About the files, yes, they're on the specified module, down into a
> hierarchy of directory, but they are. I tried two possible variations: (1=
)
> the name itself of the real file and (2) the ,v name, that I can also ver=
ify
> that is actually there.
> Any suggestion?
>
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Jemerson Figueiredo Damasio
> Bacharel em Ciencia da Computacao - UFCG
> Pesquisador do CNPq/GMF - UFCG
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>
> On Tue, Sep 23, 2008 at 5:39 PM, Ricardo Garcia <[email protected]=
r
> > wrote:
>
>> Jemerson,
>>
>>
>>
>> Have you tried adding this command after you instantiate Client class?
>>
>>
>>
>> client.setLocalPath(<MY_LOCAL_PATH>);
>>
>>
>>
>> With this, you indicate where to checkout you files to.
>>
>>
>>
>> Regarding the setFiles method, in the array passed to it, are the files
>> with the module path that these files belong?
>>
>>
>>
>> Att,
>>
>>
>>
>> Ricardo
>>
>>
>>
>>
>> ------------------------------
>>
>> *De:* Jemerson Damasio [mailto:[email protected]]
>> *Enviada em:* ter=E7a-feira, 23 de setembro de 2008 17:26
>> *Para:* [email protected]; Pablo The Boss
>> *Assunto:* [javacvs-dev] Re: Checkout error! Possible Bug?
>>
>>
>>
>> Another question. I'm trying to use the Command setFiles method in order
>> to retrieve only a few desired files, but it doesn't seems to work. In f=
act,
>> when I add the line, it doesn't checkout anything. Omg... this is tiring=
.
>>
>>
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> Jemerson Figueiredo Damasio
>> Bacharel em Ciencia da Computacao - UFCG
>> Pesquisador do CNPq/GMF - UFCG
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>
>> On Tue, Sep 23, 2008 at 4:18 PM, Jemerson Damasio <[email protected]=
>
>> wrote:
>>
>> Hi everyone,
>>
>> I don't know what is going wrong. Possibly a bug. My localPath variab=
le
>> points to /home/Me/CheckoutDir. My class CVSCheckoutListener tells me,
>> through the fileInfoGenerated method, that the files are in the Checkout=
Dir.
>> But, in fact, the files are being created at My_Project_Path/null/
>> It's clear that my variable is becoming null (what is not caused by m=
e,
>> FOR SURE) somewhere inside the JavaCVS and being interpreted as a relati=
ve
>> path. Can anyone give me a hint of how to avoid this problem?
>>
>> Here is my code:
>>
>> GlobalOptions globalOptions =3D new GlobalOptions();
>> globalOptions.setCVSRoot(CVSRoot.parse(cvsroot).toString());
>> PServerConnection c =3D new
>> PServerConnection(CVSRoot.parse(cvsroot), SocketFactory.getDefault());
>> Client client =3D new Client(c, new StandardAdminHandler());
>> client.getEventManager().addCVSListener(new
>> CVSCheckoutListener());
>> c.open();
>>
>> CheckoutCommand command =3D new CheckoutCommand();
>> command.setRecursive(true);
>> command.setModule(myModule);
>> command.setPruneDirectories(true);
>>
>> EventManager eventManager =3D client.getEventManager();
>>
>> UpdateBuilder builder =3D new UpdateBuilder(eventManager,
>> localPath);
>> command.setBuilder(builder);
>> boolean executeCommand =3D client.executeCommand(command,
>> globalOptions);
>>
>>
>> Thanks in advance,
>>
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> Jemerson Figueiredo Damasio
>> Bacharel em Ciencia da Computacao - UFCG
>> Pesquisador do CNPq/GMF - UFCG
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>
>>
>>
>
>
------=_Part_31638_28875105.1222797797577
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<div dir=3D"ltr">After a week out of the problem I'm back now. Despite =
of it, I saw some examples and everyone uses the setFile of the CheckoutCom=
mand just like I do. But for me it doesn't work.<br>Well, at least it d=
oesn't do what I expect. Ok. Let me understand. Through this method I s=
hould be able to specify which files I wanna checkout, right?<br>
I've also tryied command.setCVSCommand('F', "DesiredClass.=
java"), but it also doesn't work. Both always extracts everything =
into the cvsroot directory.<br>My doubt is simple: does it works? Has anyon=
e ever used this and faced this problem?<br>
<br><br clear=3D"all">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>Jemerson Figueiredo =
Damasio <br>Bacharel em Ciencia da Computacao - UFCG &n=
bsp; <br>Pesquisador do CN=
Pq/GMF - UFCG<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
<br><br><div class=3D"gmail_quote">On 23 de septiembre de 2008 18:01, Jemer=
son Damasio <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">j=
[email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quo=
te" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt=
0.8ex; padding-left: 1ex;">
<div dir=3D"ltr">First, thanks for solving my problem. It works! =3DD<br>Ab=
out the files, yes, they're on the specified module, down into a hierar=
chy of directory, but they are. I tried two possible variations: (1) the na=
me itself of the real file and (2) the ,v name, that I can also verify that=
is actually there.<br>
Any suggestion?<div class=3D"Ih2E3d"><br><br><br clear=3D"all">=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D<br>Jemerson Figueiredo Damasio <br>Bacharel em Ciencia da C=
omputacao - UFCG <br>Pesquisador do CNPq/GMF - UFCG<br>=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D<br>
<br><br></div><div><div></div><div class=3D"Wj3C7c"><div class=3D"gmail_quo=
te">On Tue, Sep 23, 2008 at 5:39 PM, Ricardo Garcia <span dir=3D"ltr"><<=
a href=3D"mailto:[email protected]" target=3D"_blank">ricardo.garci=
[email protected]</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link=3D"blue" vlink=3D"blue" lang=3D"PT-BR">
<div>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">Jemerson,</span></font></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US">Have you tried addi=
ng this
command after you instantiate Client class?</span></font></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US"> </span></font=
></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US">client.setLocalPath=
(<MY_LOCAL_PATH>);</span></font></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US"> </span></font=
></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US">With this, you indi=
cate
where to checkout you files to.</span></font></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US"> </span></font=
></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US">Regarding the setFi=
les
method, in the array passed to it, are the files with the module path that
these files belong?</span></font></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US"> </span></font=
></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US">Att,</span></font><=
/p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US"> </span></font=
></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US">Ricardo</span></fon=
t></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US"> </span></font=
></p>
<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;" lang=3D"EN-US"> </span></font=
></p>
<div>
<div style=3D"text-align: center;" align=3D"center"><font face=3D"Times New=
Roman" size=3D"3"><span style=3D"font-size: 12pt;">
<hr align=3D"center" size=3D"2" width=3D"100%">
</span></font></div>
<p><b><font face=3D"Tahoma" size=3D"2"><span style=3D"font-size: 10pt; font=
-family: Tahoma; font-weight: bold;">De:</span></font></b><font face=3D"Tah=
oma" size=3D"2"><span style=3D"font-size: 10pt; font-family: Tahoma;"> Jeme=
rson Damasio
[mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">jemersonf=
[email protected]</a>] <br>
<b><span style=3D"font-weight: bold;">Enviada em:</span></b> ter=E7a-feira,=
23 de
setembro de 2008 17:26<br>
<b><span style=3D"font-weight: bold;">Para:</span></b> <a href=3D"mailto:de=
[email protected]" target=3D"_blank">[email protected]</a>;
Pablo The Boss<br>
<b><span style=3D"font-weight: bold;">Assunto:</span></b> [javacvs-dev] Re:
Checkout error! Possible Bug?</span></font></p>
</div><div><div></div><div>
<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;"> </span></font></p>
<div>
<p style=3D"margin-bottom: 12pt;"><font face=3D"Times New Roman" size=3D"3"=
><span style=3D"font-size: 12pt;">Another question. I'm
trying to use the Command setFiles method in order to retrieve only a few
desired files, but it doesn't seems to work. In fact, when I add the li=
ne, it
doesn't checkout anything. Omg... this is tiring.<br>
<br>
<br clear=3D"all">
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
Jemerson Figueiredo Damasio <br>
Bacharel em Ciencia da Computacao - UFCG <br>
Pesquisador do CNPq/GMF - UFCG<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
<br>
</span></font></p>
<div>
<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">On Tue, Sep 23, 2008 at 4:18 PM, Jemerson Damasio <<a href=3D"mailto:=
[email protected]" target=3D"_blank">[email protected]</a>> wrote:=
</span></font></p>
<div>
<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">Hi everyone,<br>
<br>
I don't know what is going wrong. Possibly a bug. My local=
Path
variable points to /home/Me/CheckoutDir. My class CVSCheckoutListener tells=
me,
through the fileInfoGenerated method, that the files are in the CheckoutDir=
.
But, in fact, the files are being created at My_Project_Path/null/<br>
It's clear that my variable is becoming null (what is not =
caused
by me, FOR SURE) somewhere inside the JavaCVS and being interpreted as a
relative path. Can anyone give me a hint of how to avoid this problem?<br>
<br>
Here is my code:<br>
<br>
GlobalOptions
globalOptions =3D new GlobalOptions();<br>
globalOptions.setCVSRoot(CVSRoot.parse(cvsroot).toString());<br>
PServerConnection =
c =3D
new PServerConnection(CVSRoot.parse(cvsroot), SocketFactory.getDefault());<=
br>
Client client =3D =
new
Client(c, new StandardAdminHandler());<br>
client.getEventManager().addCVSListener(new CVSCheckoutListener());<br>
c.open();<br>
<br>
CheckoutCommand
command =3D new CheckoutCommand();<br>
command.setRecursive(true);<br>
command.setModule(myModule);<br>
command.setPruneDirectories(true);<br>
<br>
EventManager
eventManager =3D client.getEventManager();<br>
<br>
UpdateBuilder buil=
der
=3D new UpdateBuilder(eventManager, localPath);<br>
command.setBuilder(builder);<br>
boolean executeCom=
mand
=3D client.executeCommand(command, globalOptions);<br>
<br>
<br>
Thanks in advance,<br>
<br clear=3D"all">
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
Jemerson Figueiredo Damasio <br>
Bacharel em Ciencia da Computacao - UFCG <br>
Pesquisador do CNPq/GMF - UFCG<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D</span></font></p>
</div>
</div>
<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;"> </span></font></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>
------=_Part_31638_28875105.1222797797577--