RES: Re: Checkout error! Possible Bug?
"Ricardo Garcia" <[email protected]> Tue, 23 Sep 2008 17:39:06 -0300
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_NextPart_000_014E_01C91DA3.46F69650 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_014E_01C91DA3.46F69650 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;} span.EstiloDeEmail17 {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 = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Jemerson,<o:p></o:p></span></font></= p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><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'>Have you tried = adding this command after you instantiate Client class?<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> <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'>client.setLocalPa= th(<MY_LOCAL_PATH>);<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> <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'>With this, you = indicate where to checkout you files to.<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> <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'>Regarding the = setFiles method, in the array passed to it, are the files with the module path = that these files belong?<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> <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'>Att,<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> <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'>Ricardo<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> <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, 23 de setembro de 2008 17:26<br> <b><span style=3D'font-weight:bold'>Para:</span></b> = [email protected]; 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> <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'>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<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 Tue, Sep 23, 2008 at 4:18 PM, 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'>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 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_014E_01C91DA3.46F69650--