Java CVS Tag Command

"Ricardo Garcia" <[email protected]> Fri, 2 Jun 2006 13:13:37 -0300
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
------=_NextPart_000_0012_01C68646.5C60D380
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hello,
Im not an expert in Java so i was wondering if anyone could help me here. I
was able to connect to cvs using this comand:
String userName, encodedPassword, hostName, repository, cvsroot, localPath;
            userName = df_usuarioCVS.getText();
            encodedPassword = df_senhaCVS.getText();
            hostName = df_hostCVS.getText();
            repository = df_repositorioCVS.getText();
            cvsroot =
":pserver:"+userName+":"+encodedPassword+"@"+hostName+":"+repository;
            localPath = df_CaminhoFontes.getText();
            try{
                CVSRoot cvs = CVSRoot.parse(cvsroot);
                PServerConnection c = new PServerConnection(cvs);
                c.open();
                GlobalOptions globalOptions = new GlobalOptions();
                globalOptions.setCVSRoot(cvsroot);
 
                Client client = new Client(c, new StandardAdminHandler());
                client.setLocalPath(localPath);
                BasicListener list = new BasicListener();
                client.getEventManager().addCVSListener(list);
            }catch (AuthenticationException ae){
                ar.printStackTrace();
            }catch (CommandAbortedException cae){
                cae.printStackTrace();
            }catch (NullPointerException ne){
                ne.printStackTrace();
            }
        }
 
My question is: After im connected to CVS, how can i obtain the TAG of a
file or update this file to a certain TAG?
Im stuck after this connection...
Can someone help me?
 
Thank You in advance!!
 
Rick
 
 

------=_NextPart_000_0012_01C68646.5C60D380
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial=20
size=3D2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial size=3D2>Im not =
an expert in=20
Java so i was wondering if anyone could help me here. I was able to =
connect to=20
cvs using this comand:</FONT></SPAN></DIV>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial size=3D2>String =
userName,=20
encodedPassword, hostName, repository, cvsroot,=20
localPath;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
userName =3D=20
df_usuarioCVS.getText();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
encodedPassword =3D=20
df_senhaCVS.getText();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
hostName =3D=20
df_hostCVS.getText();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
repository =3D=20
df_repositorioCVS.getText();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
cvsroot =3D=20
":pserver:"+userName+":"+encodedPassword+"@"+hostName+":"+repository;<BR>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
localPath =3D=20
df_CaminhoFontes.getText();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
try{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
CVSRoot cvs =3D=20
CVSRoot.parse(cvsroot);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
PServerConnection c =3D new=20
PServerConnection(cvs);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
c.open();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
GlobalOptions globalOptions =3D new=20
GlobalOptions();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
globalOptions.setCVSRoot(cvsroot);<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Client client =3D new Client(c, new=20
StandardAdminHandler());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
client.setLocalPath(localPath);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
BasicListener list =3D new=20
BasicListener();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
client.getEventManager().addCVSListener(list);<BR>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
}catch (AuthenticationException=20
ae){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ar.printStackTrace();<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
}catch (CommandAbortedException=20
cae){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
cae.printStackTrace();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
}catch (NullPointerException=20
ne){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
ne.printStackTrace();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial size=3D2>My =
question is:=20
After im connected to CVS, how can i obtain the TAG of a file or update =
this=20
file to a certain TAG?</FONT></SPAN></DIV>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial size=3D2>Im =
stuck after this=20
connection...</FONT></SPAN></DIV>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial size=3D2>Can =
someone help=20
me?</FONT></SPAN></DIV>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial size=3D2>Thank =
You in=20
advance!!</FONT></SPAN></DIV>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D716280816-02062006><FONT face=3DArial=20
size=3D2>Rick</FONT></SPAN></DIV>
<DIV class=3DSection1 align=3Dleft><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0012_01C68646.5C60D380--