Checkout error! Possible Bug?
"Jemerson Damasio" <[email protected]> Tue, 23 Sep 2008 16:18:17 -0300
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_91678_15016863.1222197497878
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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?
Here is my code:
GlobalOptions globalOptions = new GlobalOptions();
globalOptions.setCVSRoot(CVSRoot.parse(cvsroot).toString());
PServerConnection c = new
PServerConnection(CVSRoot.parse(cvsroot), SocketFactory.getDefault());
Client client = new Client(c, new StandardAdminHandler());
client.getEventManager().addCVSListener(new
CVSCheckoutListener());
c.open();
CheckoutCommand command = new CheckoutCommand();
command.setRecursive(true);
command.setModule(myModule);
command.setPruneDirectories(true);
EventManager eventManager = client.getEventManager();
UpdateBuilder builder = new UpdateBuilder(eventManager,
localPath);
command.setBuilder(builder);
boolean executeCommand = client.executeCommand(command,
globalOptions);
Thanks in advance,
==================================
Jemerson Figueiredo Damasio
Bacharel em Ciencia da Computacao - UFCG
Pesquisador do CNPq/GMF - UFCG
==================================
------=_Part_91678_15016863.1222197497878
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div dir="ltr">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 = new GlobalOptions();<br> globalOptions.setCVSRoot(CVSRoot.parse(cvsroot).toString());<br> PServerConnection c = new PServerConnection(CVSRoot.parse(cvsroot), SocketFactory.getDefault());<br>
Client client = new Client(c, new StandardAdminHandler());<br> client.getEventManager().addCVSListener(new CVSCheckoutListener());<br> c.open();<br><br> CheckoutCommand command = new CheckoutCommand();<br>
command.setRecursive(true);<br> command.setModule(myModule);<br> command.setPruneDirectories(true);<br><br> EventManager eventManager = client.getEventManager();<br><br> UpdateBuilder builder = new UpdateBuilder(eventManager, localPath);<br>
command.setBuilder(builder);<br> boolean executeCommand = client.executeCommand(command, globalOptions);<br><br><br>Thanks in advance,<br><br clear="all">==================================<br>Jemerson Figueiredo Damasio <br>
Bacharel em Ciencia da Computacao - UFCG <br>Pesquisador do CNPq/GMF - UFCG<br>==================================<br>
</div>
------=_Part_91678_15016863.1222197497878--