RES: Re: Checkout error! Possible Bug?
"Ricardo Garcia" <[email protected]> Tue, 30 Sep 2008 15:59:59 -0300
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_NextPart_000_006C_01C92315.96F65060 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I see you=92re 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 =93files=94 array are relative to the cvs repository. =20 About the source code, you can checkout by using Mercurial:=20 =20 hg clone http://hg.netbeans.org/main =20 For more information, see = http://www.netbeans.org/community/sources/hg.html =20 =20 =20 _____ =20 De: Jemerson Damasio [mailto:[email protected]]=20 Enviada em: ter=E7a-feira, 30 de setembro de 2008 15:48 Para: [email protected] Assunto: Re: [javacvs-dev] Re: Checkout error! Possible Bug? =20 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 =20 Bacharel em Ciencia da Computacao - UFCG =20 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]> 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 =20 Bacharel em Ciencia da Computacao - UFCG =20 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, =20 Could you post your code region so we can see how you are checking out = the files? =20 Thanks =20 _____ =20 De: Jemerson Damasio [mailto:[email protected]]=20 Enviada em: ter=E7a-feira, 30 de setembro de 2008 15:30 Para: [email protected] Assunto: Re: [javacvs-dev] Re: Checkout error! Possible Bug? =20 I've noticed that if I specify an invalid file it checkouts everything = too. So, I suppose I'm specifying the file name incorrectly, but I've already tried all possible variations and can't do it right...=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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 =20 Bacharel em Ciencia da Computacao - UFCG =20 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. = 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 =20 Bacharel em Ciencia da Computacao - UFCG =20 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 verify 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=20 Bacharel em Ciencia da Computacao - UFCG=20 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]> wrote: Jemerson, =20 Have you tried adding this command after you instantiate Client class? =20 client.setLocalPath(<MY_LOCAL_PATH>); =20 With this, you indicate where to checkout you files to. =20 Regarding the setFiles method, in the array passed to it, are the files = with the module path that these files belong? =20 Att, =20 Ricardo =20 =20 _____ =20 De: Jemerson Damasio [mailto:[email protected]]=20 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? =20 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=20 Bacharel em Ciencia da Computacao - UFCG=20 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 = 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/ 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? =20 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=20 Bacharel em Ciencia da Computacao - UFCG=20 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 =20 =20 =20 =20 =20 =20 ------=_NextPart_000_006C_01C92315.96F65060 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:"Times New Roman";} pre {margin:0cm; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New";} span.EstiloDeEmail18 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DPT-BR link=3Dblue vlink=3Dblue> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-US style=3D'font-size:10.0pt;font-family:Arial;color:navy'>I see = you’re using the command </span></font><span = lang=3DEN-US>command.setModule(specifiedModule); <font color=3D"#333399"><span style=3D'color:#333399'>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.<o:p></o:p></span></font></span></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span lang=3DEN-US = style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span lang=3DEN-US style=3D'font-size:12.0pt;color:#333399'>About the source = code, you can checkout by using Mercurial: <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span lang=3DEN-US = style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> <pre><font size=3D2 face=3D"Courier New"><span lang=3DEN-US = style=3D'font-size:10.0pt'>hg clone = http://hg.netbeans.org/main<o:p></o:p></span></font></pre> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span lang=3DEN-US = style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span lang=3DEN-US style=3D'font-size:12.0pt;color:#333399'>For more = information, see <a href=3D"http://www.netbeans.org/community/sources/hg.html">http://www.net= beans.org/community/sources/hg.html</a><o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span lang=3DEN-US = style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span lang=3DEN-US = style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = lang=3DEN-US style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p>= </span></font></p> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt; font-family:Tahoma;font-weight:bold'>De:</span></font></b><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> = Jemerson Damasio [mailto:[email protected]] <br> <b><span style=3D'font-weight:bold'>Enviada em:</span></b> = ter=E7a-feira, 30 de setembro de 2008 15:48<br> <b><span style=3D'font-weight:bold'>Para:</span></b> = [email protected]<br> <b><span style=3D'font-weight:bold'>Assunto:</span></b> Re: = [javacvs-dev] Re: Checkout error! Possible Bug?</span></font><o:p></o:p></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><o:p> </o:p></span></font></p> <div> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>If I could at = least checkout the source code I swear I'd make it work.<br> <br> <br clear=3Dall> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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> <o:p></o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'>On 30 de septiembre de 2008 15:40, Jemerson Damasio <<a href=3D"mailto:[email protected]">[email protected]</a>> = wrote:<o:p></o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'>Sorry, I had posted it a few e-mails above, but here it = is:<o:p></o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><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());<o:p></o:p></span></font></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> client.setLocalPath(localPath);<o:p></o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><br> c.open();<br> CheckoutCommand command =3D new CheckoutCommand();<o:p></o:p></span></font></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> File[] = files =3D {new File(fileName)};<br> command.setFiles(files);<br> command.setCheckoutByDate(specifiedDate);<br> command.setRecursive(true);<br> command.setModule(specifiedModule);<br> System.out.println(command.getCVSCommand());<o:p></o:p></span></font></p>= <div> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><br> boolean = executeCommand =3D client.executeCommand(command, = globalOptions);<o:p></o:p></span></font></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'>So, as I mentioned, I've already tried all possible variations = for the fileName, the simple name, the absolute name, relative, ",v" = name, etc.<br> Any help would be appreciated.<o:p></o:p></span></font></p> <div> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><br> <br> Thanks in advance.<br> <br clear=3Dall> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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> <o:p></o:p></span></font></p> </div> <div> <div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'>On 30 de septiembre de 2008 15:35, Ricardo Garcia <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>> wrote:<o:p></o:p></span></font></p> <div link=3Dblue vlink=3Dblue> <div> <p><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size:10.0pt;font-family: Arial;color:navy'>Jamerson,</span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size:10.0pt;font-family: Arial;color:navy'> </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'>Could you post your code region so we can = see how you are checking out the files?</span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'> </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'>Thanks</span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'> </span></font><o:p></o:p></p> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter> </span></font></div> <p><b><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt;font-family:Tahoma; font-weight:bold'>De:</span></font></b><font size=3D2 = face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Jemerson Damasio = [mailto:<a href=3D"mailto:[email protected]" = target=3D"_blank">[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<o:p></o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt; font-family:Tahoma'><br> <b><span style=3D'font-weight:bold'>Para:</span></b> <a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a><o:p></o:p></span></font></= p> </div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt; font-family:Tahoma;font-weight:bold'>Assunto:</span></font></b><font = size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Re: [javacvs-dev] Re: Checkout error! Possible = Bug?</span></font><o:p></o:p></p> </div> <div> <div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> <o:p></o:p></span></font></p> <div> <p style=3D'margin-bottom:12.0pt'><font size=3D3 face=3D"Times New = Roman"><span style=3D'font-size:12.0pt'>I've noticed that if I specify an invalid = file it checkouts everything too. So, I suppose I'm specifying the file name incorrectly, but I've already tried all possible variations and can't do = it right... <br> <br clear=3Dall> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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<o:p></o:p></span></font></p> <div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>On 30 de septiembre de 2008 15:03, Jemerson Damasio <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>> wrote:<o:p></o:p></span></font></p> <div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>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.<br> 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?<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 anyone ever used this and faced = this problem?<o:p></o:p></span></font></p> <div> <p style=3D'margin-bottom:12.0pt'><font size=3D3 face=3D"Times New = Roman"><span style=3D'font-size:12.0pt'><br> <br> <br clear=3Dall> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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<o:p></o:p></span></font></p> </div> <div> <div> <div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>On 23 de septiembre de 2008 18:01, Jemerson Damasio <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>> wrote:<o:p></o:p></span></font></p> <div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>First, thanks for solving my problem. It works! =3DD<br> 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 verify that is = actually there.<br> Any suggestion?<o:p></o:p></span></font></p> <div> <p style=3D'margin-bottom:12.0pt'><font size=3D3 face=3D"Times New = Roman"><span style=3D'font-size:12.0pt'><br> <br> <br clear=3Dall> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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<o:p></o:p></span></font></p> </div> <div> <div> <div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>On Tue, Sep 23, 2008 at 5:39 PM, Ricardo Garcia <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>> wrote:<o:p></o:p></span></font></p> <div link=3Dblue vlink=3Dblue> <div> <p><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size:10.0pt;font-family: Arial;color:navy'>Jemerson,</span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size:10.0pt;font-family: Arial;color:navy'> </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'>Have you tried adding this command after = you instantiate Client class?</span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'> </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'>client.setLocalPath(<MY_LOCAL_PATH>);= </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'> </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'>With this, you indicate where to checkout = you files to.</span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'> </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'>Regarding the setFiles method, in the = array passed to it, are the files with the module path that these files = belong?</span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'> </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'>Att,</span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'> </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'>Ricardo</span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'> </span></font><o:p></o:p></p> <p><font size=3D2 color=3Dnavy face=3DArial><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:Arial;color:navy'> </span></font><o:p></o:p></p> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter> </span></font></div> <p><b><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt;font-family:Tahoma; font-weight:bold'>De:</span></font></b><font size=3D2 = face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Jemerson Damasio = [mailto:<a href=3D"mailto:[email protected]" = target=3D"_blank">[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:[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><o:p></o:p></p> </div> <div> <div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> <o:p></o:p></span></font></p> <div> <p style=3D'margin-bottom:12.0pt'><font size=3D3 face=3D"Times New = Roman"><span style=3D'font-size:12.0pt'>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.<br> <br> <br clear=3Dall> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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<o:p></o:p></span></font></p> <div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>On Tue, Sep 23, 2008 at 4:18 PM, Jemerson Damasio <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>> wrote:<o:p></o:p></span></font></p> <div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'>Hi everyone,<br> <br> I don't know what is going wrong. Possibly a bug. My = localPath 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 = builder =3D new UpdateBuilder(eventManager, localPath);<br> command.setBuilder(builder);<br> boolean = executeCommand =3D client.executeCommand(command, globalOptions);<br> <br> <br> Thanks in advance,<br> <br clear=3Dall> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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<o:p></o:p></span></font></p> </div> </div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> <o:p></o:p></span></font></p> </div> </div> </div> </div> </div> </div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> <o:p></o:p></span></font></p> </div> </div> </div> </div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> <o:p></o:p></span></font></p> </div> </div> </div> </div> <p><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'> <o:p></o:p></span></font></p> </div> </div> </div> </div> </div> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><o:p> </o:p></span></font></p> </div> </div> </div> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><o:p> </o:p></span></font></p> </div> </div> </body> </html> ------=_NextPart_000_006C_01C92315.96F65060--