Re: Re: Checkout error! Possible Bug?

"Jemerson Damasio" <[email protected]> Wed, 1 Oct 2008 11:51:50 -0300
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
------=_Part_45554_7975206.1222872710543
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi everyone,
After downloading some modules of Netbeans that uses the JavaCVS (the
JavaCVS wasn't there) I noticed that the setFiles method is not intended to
do what I expected it to be. One module of netbeans uses its by passing the
local temp dir of the user. (?????)
Anyway. In fact, one must specify the file to be downloaded through the
setModule or setModules methods, with the relative path inside the cvs root
dir.
I don't know if this is what you tried to explain Ricardo, but now I solved
it. Thanks again.


=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


2008/9/30 Ricardo Garcia <[email protected]>

>  I see you're using the command command.setModule(specifiedModule); and
> stil is trying to get only specific files. Try removing this command, but
> make sure this files path in your "files" array are relative to the cvs
> repository.
>
>
>
> About the source code, you can checkout by using Mercurial:
>
>
>
> hg clone http://hg.netbeans.org/main
>
>
>
> For more information, see
> http://www.netbeans.org/community/sources/hg.html
>
>
>
>
>
>
>  ------------------------------
>
> *De:* Jemerson Damasio [mailto:[email protected]]
> *Enviada em:* ter=E7a-feira, 30 de setembro de 2008 15:48
>
> *Para:* [email protected]
> *Assunto:* Re: [javacvs-dev] Re: Checkout error! Possible Bug?
>
>
>
> If I could at least checkout the source code I swear I'd make it work.
>
>
> =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 30 de septiembre de 2008 15:40, Jemerson Damasio <[email protected]=
m>
> wrote:
>
> Sorry, I had posted it a few e-mails above, but here it is:
>
>
>
>             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());
>
>             client.setLocalPath(localPath);
>
>
>             c.open();
>             CheckoutCommand command =3D new CheckoutCommand();
>
>             File[] files =3D {new File(fileName)};
>             command.setFiles(files);
>             command.setCheckoutByDate(specifiedDate);
>             command.setRecursive(true);
>             command.setModule(specifiedModule);
>             System.out.println(command.getCVSCommand());
>
>
>             boolean executeCommand =3D client.executeCommand(command,
> globalOptions);
>
> So, as I mentioned, I've already tried all possible variations for the
> fileName, the simple name, the absolute name, relative, ",v" name, etc.
> Any help would be appreciated.
>
>
>
> 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
>
>    On 30 de septiembre de 2008 15:35, Ricardo Garcia <
> [email protected]> wrote:
>
> Jamerson,
>
>
>
> Could you post your code region so we can see how you are checking out th=
e
> files?
>
>
>
> Thanks
>
>
>  ------------------------------
>
> *De:* Jemerson Damasio [mailto:[email protected]]
> *Enviada em:* ter=E7a-feira, 30 de setembro de 2008 15:30
>
>
> *Para:* [email protected]
>
> *Assunto:* Re: [javacvs-dev] Re: Checkout error! Possible Bug?
>
>
>
> I've noticed that if I specify an invalid file it checkouts everything to=
o.
> So, I suppose I'm specifying the file name incorrectly, but I've already
> tried all possible variations and can't do it right...
>
> =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 30 de septiembre de 2008 15:03, Jemerson Damasio <[email protected]=
>
> wrote:
>
> 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. Throug=
h
> this method I should be able to specify which files I wanna checkout, rig=
ht?
> 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 th=
is
> 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]=
>
> wrote:
>
> 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 fact,
> 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 variabl=
e
> points to /home/Me/CheckoutDir. My class CVSCheckoutListener tells me,
> through the fileInfoGenerated method, that the files are in the CheckoutD=
ir.
> 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 me=
,
> FOR SURE) somewhere inside the JavaCVS and being interpreted as a relativ=
e
> 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_45554_7975206.1222872710543
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div dir=3D"ltr">Hi everyone, <br>After downloading some modules of Netbean=
s that uses the JavaCVS (the JavaCVS wasn&#39;t there) I noticed that the s=
etFiles method is not intended to do what I expected it to be. One module o=
f netbeans uses its by passing the local temp dir of the user. (?????)<br>
Anyway. In fact, one must specify the file to be downloaded through the set=
Module or setModules methods, with the relative path inside the cvs root di=
r. <br>I don&#39;t know if this is what you tried to explain Ricardo, but n=
ow I solved it. Thanks again.<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 &nbsp;<br>Bacharel em Ciencia da Computacao - UFCG &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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">2008/9/30 Ricardo Garcia <span dir=3D"lt=
r">&lt;<a href=3D"mailto:[email protected]">[email protected].=
br</a>&gt;</span><br><blockquote class=3D"gmail_quote" style=3D"border-left=
: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1e=
x;">










<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;" lang=3D"EN-US">I see you're using
the command </span></font><span lang=3D"EN-US">command.setModule(specifiedM=
odule); <font color=3D"#333399"><span style=3D"color: rgb(51, 51, 153);">an=
d stil is trying to get only
specific files. Try removing this command, but make sure this files path in
your "files" array are relative to the cvs repository.</span></font></span>=
</p>

<p><font color=3D"#333399" face=3D"Times New Roman" size=3D"3"><span style=
=3D"font-size: 12pt; color: rgb(51, 51, 153);" lang=3D"EN-US">&nbsp;</span>=
</font></p>

<p><font color=3D"#333399" face=3D"Times New Roman" size=3D"3"><span style=
=3D"font-size: 12pt; color: rgb(51, 51, 153);" lang=3D"EN-US">About the sou=
rce code, you
can checkout by using Mercurial: </span></font></p>

<p><font color=3D"#333399" face=3D"Times New Roman" size=3D"3"><span style=
=3D"font-size: 12pt; color: rgb(51, 51, 153);" lang=3D"EN-US">&nbsp;</span>=
</font></p>

<pre><font face=3D"Courier New" size=3D"2"><span style=3D"font-size: 10pt;"=
 lang=3D"EN-US">hg clone <a href=3D"http://hg.netbeans.org/main" target=3D"=
_blank">http://hg.netbeans.org/main</a></span></font></pre>

<p><font color=3D"#333399" face=3D"Times New Roman" size=3D"3"><span style=
=3D"font-size: 12pt; color: rgb(51, 51, 153);" lang=3D"EN-US">&nbsp;</span>=
</font></p>

<p><font color=3D"#333399" face=3D"Times New Roman" size=3D"3"><span style=
=3D"font-size: 12pt; color: rgb(51, 51, 153);" lang=3D"EN-US">For more info=
rmation, see <a href=3D"http://www.netbeans.org/community/sources/hg.html" =
target=3D"_blank">http://www.netbeans.org/community/sources/hg.html</a></sp=
an></font></p>


<p><font color=3D"#333399" face=3D"Times New Roman" size=3D"3"><span style=
=3D"font-size: 12pt; color: rgb(51, 51, 153);" lang=3D"EN-US">&nbsp;</span>=
</font></p>

<p><font color=3D"#333399" face=3D"Times New Roman" size=3D"3"><span style=
=3D"font-size: 12pt; color: rgb(51, 51, 153);" lang=3D"EN-US">&nbsp;</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">&nbsp;</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,=
 30 de
setembro de 2008 15:48<div><div></div><div class=3D"Wj3C7c"><br>
<b><span style=3D"font-weight: bold;">Para:</span></b> <a href=3D"mailto:de=
[email protected]" target=3D"_blank">[email protected]</a><br>
<b><span style=3D"font-weight: bold;">Assunto:</span></b> Re: [javacvs-dev]=
 Re:
Checkout error! Possible Bug?</div></div></span></font></p>

</div><div><div></div><div class=3D"Wj3C7c">

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</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;">If I could at least
checkout the source code I swear I&#39;d make it work.<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 &nbsp;<br>
Bacharel em Ciencia da Computacao - UFCG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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 30 de septiembre de 2008 15:40, Jemerson Damasio &lt;<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]</a>&gt; wrot=
e:</span></font></p>


<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">Sorry, I had posted it a few e-mails above, but here it is:</span></font=
></p>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;"><br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GlobalOptions
globalOptions =3D&nbsp; new GlobalOptions();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
globalOptions.setCVSRoot(CVSRoot.parse(cvsroot).toString());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PServerConnection =
c =3D
new PServerConnection(CVSRoot.parse(cvsroot), SocketFactory.getDefault());<=
br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Client client =3D =
new
Client(c, new StandardAdminHandler());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
client.getEventManager().addCVSListener(new CVSCheckoutListener());</span><=
/font></p>

</div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
client.setLocalPath(localPath);</span></font></p>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;"><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; c.open();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CheckoutCommand
command =3D new CheckoutCommand();</span></font></p>

</div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; File[] files =
=3D
{new File(fileName)};<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
command.setFiles(files);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
command.setCheckoutByDate(specifiedDate);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
command.setRecursive(true);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
command.setModule(specifiedModule);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
System.out.println(command.getCVSCommand());</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;"><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; boolean executeCom=
mand
=3D client.executeCommand(command, globalOptions);</span></font></p>

</div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">So, as I mentioned, I&#39;ve already tried all possible variations for t=
he
fileName, the simple name, the absolute name, relative, &quot;,v&quot; name=
,
etc.<br>
Any help would be appreciated.</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;"><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 &nbsp;<br>
Bacharel em Ciencia da Computacao - UFCG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>

<div>

<div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">On 30 de septiembre de 2008 15:35, Ricardo Garcia &lt;<a href=3D"mailto:=
[email protected]" target=3D"_blank">[email protected]</a>&=
gt;
wrote:</span></font></p>

<div link=3D"blue" vlink=3D"blue">

<div>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
 10pt; font-family: Arial; color: navy;">Jamerson,</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;">&nbsp;</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">Could you post your=
 code region so we can see how
you are checking out the files?</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">&nbsp;</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">Thanks</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">&nbsp;</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"_bla=
nk">[email protected]</a>] <br>

<b><span style=3D"font-weight: bold;">Enviada em:</span></b> ter=E7a-feira,=
 30 de
setembro de 2008 15:30</span></font></p>

<div>

<p><font face=3D"Tahoma" size=3D"2"><span style=3D"font-size: 10pt; font-fa=
mily: Tahoma;"><br>
<b><span style=3D"font-weight: bold;">Para:</span></b> <a href=3D"mailto:de=
[email protected]" target=3D"_blank">[email protected]</a></spa=
n></font></p>

</div>

<p><b><font face=3D"Tahoma" size=3D"2"><span style=3D"font-size: 10pt; font=
-family: Tahoma; font-weight: bold;">Assunto:</span></font></b><font face=
=3D"Tahoma" size=3D"2"><span style=3D"font-size: 10pt; font-family: Tahoma;=
"> Re:
[javacvs-dev] Re: Checkout error! Possible Bug?</span></font></p>

</div>

<div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</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;">I&#39;ve noticed that if I specify an inv=
alid file it
checkouts everything too. So, I suppose I&#39;m specifying the file name
incorrectly, but I&#39;ve already tried all possible variations and can&#39=
;t do it
right... <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 &nbsp;<br>
Bacharel em Ciencia da Computacao - UFCG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">On 30 de
septiembre de 2008 15:03, Jemerson Damasio &lt;<a href=3D"mailto:jemersonfd=
@gmail.com" target=3D"_blank">[email protected]</a>&gt;
wrote:</span></font></p>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">After a
week out of the problem I&#39;m back now. Despite of it, I saw some example=
s and
everyone uses the setFile of the CheckoutCommand just like I do. But for me=
 it
doesn&#39;t work.<br>
Well, at least it doesn&#39;t do what I expect. Ok. Let me understand. Thro=
ugh this
method I should be able to specify which files I wanna checkout, right?<br>
I&#39;ve also tryied command.setCVSCommand(&#39;F&#39;, &quot;DesiredClass.=
java&quot;), but
it also doesn&#39;t work. Both always extracts everything into the cvsroot
directory.<br>
My doubt is simple: does it works? Has anyone ever used this and faced this
problem?</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;"><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 &nbsp;<br>
Bacharel em Ciencia da Computacao - UFCG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>

<div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">On 23 de
septiembre de 2008 18:01, Jemerson Damasio &lt;<a href=3D"mailto:jemersonfd=
@gmail.com" target=3D"_blank">[email protected]</a>&gt;
wrote:</span></font></p>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">First,
thanks for solving my problem. It works! =3DD<br>
About the files, yes, they&#39;re on the specified module, down into a hier=
archy of
directory, but they are. I tried two possible variations: (1) the name itse=
lf
of the real file and (2) the ,v name, that I can also verify that is actual=
ly
there.<br>
Any suggestion?</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;"><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</span></font></p>

</div>

<div>

<div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">On Tue,
Sep 23, 2008 at 5:39 PM, Ricardo Garcia &lt;<a href=3D"mailto:ricardo.garci=
[email protected]" target=3D"_blank">[email protected]</a>&gt;
wrote:</span></font></p>

<div link=3D"blue" vlink=3D"blue">

<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;">&nbsp;</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">&nbsp;</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=
(&lt;MY_LOCAL_PATH&gt;);</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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"_bla=
nk">[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>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</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&#39;m trying to use t=
he Command
setFiles method in order to retrieve only a few desired files, but it doesn=
&#39;t
seems to work. In fact, when I add the line, it doesn&#39;t checkout anythi=
ng.
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</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 &lt;<a href=3D"mailto:jemersonfd@=
gmail.com" target=3D"_blank">[email protected]</a>&gt;
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>
&nbsp;&nbsp; I don&#39;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>
&nbsp;&nbsp; It&#39;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>
&nbsp;<br>
&nbsp;&nbsp; Here is my code:<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GlobalOptions
globalOptions =3D&nbsp; new GlobalOptions();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
globalOptions.setCVSRoot(CVSRoot.parse(cvsroot).toString());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PServerConnection =
c =3D
new PServerConnection(CVSRoot.parse(cvsroot), SocketFactory.getDefault());<=
br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Client client =3D =
new
Client(c, new StandardAdminHandler());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
client.getEventManager().addCVSListener(new CVSCheckoutListener());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; c.open();<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CheckoutCommand
command =3D new CheckoutCommand();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; command.setRecursi=
ve(true);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
command.setModule(myModule);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
command.setPruneDirectories(true);<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EventManager
eventManager =3D client.getEventManager();<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UpdateBuilder buil=
der
=3D new UpdateBuilder(eventManager, localPath);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
command.setBuilder(builder);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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=
;">&nbsp;</span></font></p>

</div>

</div>

</div>

</div>

</div>

</div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

</div>

</div>

</div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

</div>

</div>

</div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

</div>

</div>

</div>

</div>

</div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

</div>

</div>

</div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

</div></div></div>

</div>


</blockquote></div><br></div>

------=_Part_45554_7975206.1222872710543--