[Logo] JCVSForum - Community Support For JCVS Users and Developers
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: jcvslist
Forum Index » Profile for jcvslist » Messages posted by jcvslist
Author Message
<pre>hello,

tim's CVSImplementation-Class works very well without any problems. i've also
tried to implement cvsc in an empty project but without success all given
directories exist (d:\test, d:\test\cvsco, d:\test\localroot, d:\test\temp) and
are empty. the export()-method completes without errors but does nothing but
creating an empty log-file. the code follows below...

regards,
Matthias Minich

T-Systems GEI
DA-8 Application Support & Service
Adress: 1-3 Goebelstrasse, Darmstadt, 64293
Postal Adress: P.O. box 1006045, Darmstadt, 64206
Phone: +49 6151 820-9950
eMail: matthias.minich@t-systems.com
Internet: http://www.t-systems.com



--------------------------snip--------------------------
public void export() throws Exception{

CVSEntryVector entry = new CVSEntryVector();
CVSArgumentVector argument = new CVSArgumentVector();
CVSClient client = new CVSClient("172.16.88.157", 2401);
CVSProject project = new CVSProject(client);
CVSRequest request = new CVSRequest();
File coDir = new File("d:\\test\\cvsco\\");

if(!coDir.exists()){
if(!coDir.mkdirs()){
throw new IOException("Could not create Directories '" +
coDir.getPath() + "'.");
}
}

argument.appendArgument("ARS-Test");
project.setUserName("mminich");
project.setPassword(CVSScramble.scramblePassword("lalala", 'A'));
try {
project.setTempDirectory("d:\\test\\temp");
}
catch (Exception ex) {
ex.printStackTrace();
}
project.setRepository("ARS-Test");
project.setRootDirectory("/usr/cvsroot");
project.setLocalRootDirectory("d:\\test\\localroot");
project.setPServer(true);
project.setConnectionMethod(CVSRequest.METHOD_INETD);
project.setAllowsGzipFileMode(false);
project.establishRootEntry("d:\\test\\localroot");

request.setPServer(true);
request.setUserName(project.getUserName());
request.setPassword(project.getPassword());

request.setConnectionMethod(project.getConnectionMethod());
request.setServerCommand(project.getServerCommand());
request.setRshProcess(project.getRshProcess());

request.setPort(CVSClient.DEFAULT_CVS_PORT);
request.setHostName("172.16.88.157");

request.setRepository("ARS-Test");
request.setLocalDirectory(project.getLocalRootDirectory());
request.setRootDirectory(project.getRootDirectory());
request.setRootRepository(project.getRootDirectory());

request.setSetVariables(project.getSetVariables());
request.setCommand("co");

request.sendModule = false;
request.sendArguments = true;
request.sendEntries = false;
request.handleUpdated = true;
request.allowOverWrites = true;
request.queueResponse = true;
request.responseHandler = project;
request.includeNotifies = false;
request.handleEntries = true;

request.traceRequest = debugProtocol;
request.traceResponse = debugProtocol;
request.traceTCPData = debugProtocol;
request.traceProcessing = debugProtocol;

request.allowGzipFileMode = project.allowsGzipFileMode();
request.setEntries( entry );
request.appendArguments( argument );

PrintWriter redir = null;

if ( debugProtocol ){
redir = new PrintWriter(new FileWriter( "d:\\test" + File.separator
+ "co-log.txt" ) );
request.setRedirectWriter( redir );
}

CVSResponse response = client.processCVSRequest( request );
System.out.println(response.toString());

project.processCVSResponse( request, response );

if ( response != null
&& ! request.saveTempFiles )
{
response.deleteTempFiles();
}
if ( response.getStatus() != CVSResponse.OK )
{
throw new IOException
( "checkout of '" + "ARS-Test" + "' failed: "
+ response.getDisplayResults() );
}
if ( redir != null )
{
redir.close();
}
}
--------------------------snap--------------------------

</pre>
<pre>hello tim,

i still have some questions left: what is the meaning of the following variables
in the script (gjt-co.js)?

- module (i guess a String containing the module-name)
- RootDirectory (something like CVSROOT? "/usr/cvsroot")
- cvsCommand (no idea!! --> request.setCommand(cvsCommand))

thanks,
Matthias Minich

T-Systems GEI
DA-8 Application Support & Service
Adress: 1-3 Goebelstrasse, Darmstadt, 64293
Postal Adress: P.O. box 1006045, Darmstadt, 64206
Phone: +49 6151 820-9950
eMail: matthias.minich@t-systems.com
Internet: http://www.t-systems.com



> -----Original Message-----
> From: jcvs-request@server.gjt.org
> [mailto:jcvs-request@server.gjt.org]On
> Behalf Of Tim Endres
> Sent: Friday, December 19, 2003 3:47 AM
> To: Minich, Matthias
> Cc: jcvs@gjt.org
> Subject: Re: [jcvs] Implementing com.ice.cvsc
>
>
> Look at the java scripts in jcvsii, as well as the TestPanel,
> CheckoutPanel,
> and ExportPanel classes in jcvsii. Also, check out this utility class:
>
> http://www.technion.ac.il/~tzahi/
>
> tim.
>
>


</pre>
<pre>Look at the java scripts in jcvsii, as well as the TestPanel, CheckoutPanel,
and ExportPanel classes in jcvsii. Also, check out this utility class:

http://www.technion.ac.il/~tzahi/

tim.


> [Sorry, i hit "send" too early --> forgot to append my name]
>
> hello,
>
> i'm trying to implement cvsc (thanks tim!) into my application. but i think i
need some help getting started like which objects to create for a command. for
now i have a CVSClient with Default-Constructor and a CVSRequest with username,
password, port, servername, repository and pserver set. but i can't find
anything on how to set the modulename, type of operation (export, checkout
etc...).
> Maybe you have some code-snippet which performs a checkout- and/or
import-operation? I think that would help a lot
>
> thanks,
> Matthias Minich
>
> T-Systems GEI
> DA-8 Application Support & Service
> Adress: 1-3 Goebelstrasse, Darmstadt, 64293
> Postal Adress: P.O. box 1006045, Darmstadt, 64206
> Phone: +49 6151 820-9950
> eMail: matthias.minich@t-systems.com
> Internet: http://www.t-systems.com
>
> --------------------------------------------------------------------
> View List Archive: <http://www.gjt.org/mlist/jcvs/threads.html>
> Search List Archive: <http://csdl.ics.hawaii.edu:8100/>
> To unsubscribe from this list:
> <http://www.gjt.org/servlets/MailingLists/UnsubForm.html/jcvs>
>

</pre>
<pre>[Sorry, i hit "send" too early --> forgot to append my name]

hello,

i'm trying to implement cvsc (thanks tim!) into my application. but i think i
need some help getting started like which objects to create for a command. for
now i have a CVSClient with Default-Constructor and a CVSRequest with username,
password, port, servername, repository and pserver set. but i can't find
anything on how to set the modulename, type of operation (export, checkout
etc...).
Maybe you have some code-snippet which performs a checkout- and/or
import-operation? I think that would help a lot

thanks,
Matthias Minich

T-Systems GEI
DA-8 Application Support & Service
Adress: 1-3 Goebelstrasse, Darmstadt, 64293
Postal Adress: P.O. box 1006045, Darmstadt, 64206
Phone: +49 6151 820-9950
eMail: matthias.minich@t-systems.com
Internet: http://www.t-systems.com

</pre>
<pre>hello,

i'm trying to implement cvsc (thanks tim!) into my application. but i think i
need some help getting started like which objects to create for a command. for
now i have a CVSClient with Default-Constructor and a CVSRequest with username,
password, port, servername, repository and pserver set. but i can't find
anything on how to set the modulename, type of operation (export, checkout
etc...).
Maybe you have some code-snippet which performs a checkout- and/or
import-operation? I think that would help a lot

thanks,

</pre>
<pre>thanks to all who responded. pretty silly of me.

On Wed, 17 Dec 2003 16:40:47 -0500 (EST), Tim Endres <time@trustice.com>
wrote:

> It appears that you are missing the activation.jar.
>
>> i can gloat about having successfully setup and run atleast 1 java app.
>> but this beats me. i get the error
>>
>>
>> java -cp /home/praveen/lib/jcvsii.jar com.ice.jcvsii.JCVS
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> javax/activation/FileTypeMap
>> at com.ice.jcvsii.JCVS.processArguments(JCVS.java:141)
>> at com.ice.jcvsii.JCVS.instanceMain(JCVS.java:82)
>> at com.ice.jcvsii.JCVS.main(JCVS.java:64)
>> praveen@kallakuri:~/downloads$ cd
>> praveen@kallakuri:~$ java -jar lib/jcvsii.jar
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> javax/activation/FileTypeMap
>> at com.ice.jcvsii.JCVS.processArguments(JCVS.java:141)
>> at com.ice.jcvsii.JCVS.instanceMain(JCVS.java:82)
>> at com.ice.jcvsii.JCVS.main(JCVS.java:64)
>> praveen@kallakuri:~$
>>
>> how can i map tp that FileTypeMap class or is something else wrong?
>>
>> i am on linux (woody) with java 1.4.2. can someone give me a prod in the
>> right direction?
>>
>> --
>> k.p.
> =
>
> --------------------------------------------------------------------
> View List Archive: <http://www.gjt.org/mlist/jcvs/threads.html>
> Search List Archive: <http://csdl.ics.hawaii.edu:8100/>
> To unsubscribe from this list:
> <http://www.gjt.org/servlets/MailingLists/UnsubForm.html/jcvs>



--
k.p.

</pre>
<pre>It appears that you are missing the activation.jar.

> i can gloat about having successfully setup and run atleast 1 java app.
> but this beats me. i get the error
>
>
> java -cp /home/praveen/lib/jcvsii.jar com.ice.jcvsii.JCVS
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/activation/FileTypeMap
> at com.ice.jcvsii.JCVS.processArguments(JCVS.java:141)
> at com.ice.jcvsii.JCVS.instanceMain(JCVS.java:82)
> at com.ice.jcvsii.JCVS.main(JCVS.java:64)
> praveen@kallakuri:~/downloads$ cd
> praveen@kallakuri:~$ java -jar lib/jcvsii.jar
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/activation/FileTypeMap
> at com.ice.jcvsii.JCVS.processArguments(JCVS.java:141)
> at com.ice.jcvsii.JCVS.instanceMain(JCVS.java:82)
> at com.ice.jcvsii.JCVS.main(JCVS.java:64)
> praveen@kallakuri:~$
>
> how can i map tp that FileTypeMap class or is something else wrong?
>
> i am on linux (woody) with java 1.4.2. can someone give me a prod in the
> right direction?
>
> --
> k.p.
=

</pre>
<pre>i can gloat about having successfully setup and run atleast 1 java app.
but this beats me. i get the error


java -cp /home/praveen/lib/jcvsii.jar com.ice.jcvsii.JCVS
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/activation/FileTypeMap
at com.ice.jcvsii.JCVS.processArguments(JCVS.java:141)
at com.ice.jcvsii.JCVS.instanceMain(JCVS.java:82)
at com.ice.jcvsii.JCVS.main(JCVS.java:64)
praveen@kallakuri:~/downloads$ cd
praveen@kallakuri:~$ java -jar lib/jcvsii.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/activation/FileTypeMap
at com.ice.jcvsii.JCVS.processArguments(JCVS.java:141)
at com.ice.jcvsii.JCVS.instanceMain(JCVS.java:82)
at com.ice.jcvsii.JCVS.main(JCVS.java:64)
praveen@kallakuri:~$

how can i map tp that FileTypeMap class or is something else wrong?

i am on linux (woody) with java 1.4.2. can someone give me a prod in the
right direction?

--
k.p.

</pre>
<pre>In my project window, I selected the 3 files in my project which were
out of date, then ran the Selection->Commit menu command. The out of
date files appeared to commit successfully but then jCVS apparently
tried to commit the first of these again and I got the following error
message:

cvs [server aborted]: can't stat xyz: No such file or directory

(xyz is the filename).

It would really be helpful if the jcvs mailing list archives were
updated more frequently so that users could determine if problems they
find are known prior to posting.

Thanks.

</pre>
<pre>I do not recommend trying to use that class as it is written. I suggest it as
the simplest
example of the use of the com.ice.cvsc package. You should not have any code fom

com.ice.jcvsii in your project. Only com.ice.cvsc.

tim.

> Tim,
>
> i can only find TestConnectPanel which needs other objects in it's
constructor. this way i walk up until JCVS which seems to be the root of the
complete program. if i create the following objects and pass them until i can
create TestConnectPanel i get a null pointer-exception.
>
> JCVS jcvs = new JCVS();
> Rectangle r1 = new Rectangle();
> MainFrame mainFrame = new MainFrame(jcvs, "lalala",r1);
> MainPanel mainPanel = new MainPanel(mainFrame);
> TestConnectPanel temp = new TestConnectPanel(mainPanel);
>
> this code is inside of the main-method of my new created class (extends
JFrame). But after compiling i get the following error:
>
> java.lang.NullPointerException at
com.ice.jcvsii.MainPanel.<init>(MainPanel.java:45) at
com.ice.jcvsii.MainFrame.<init>(MainFrame.java:61) at
test.temp.main(temp.java:23) Exception in thread "main"
>
> any ideas?? thanks...
> Matthias
>
>
>
> > -----Original Message-----
> > From: Tim Endres [mailto:time@trustice.com]
> > Sent: Monday, December 15, 2003 10:35 PM
> > To: Minich, Matthias; jcvs@gjt.org
> > Subject: Re: [jcvs] startup-questions...
> >
> >
> > The CVS client protocol is implemented entirely in the
> > com.ice.cvsc package.
> > I recommend that you start with com.ice.jcvsii.TestPanel and
> > after successfully
> > connecting within your application, then move to
> > com.ice.jcvsii.CheckoutPanel.
> > Those are the two easiest functionalities to implement. That
> > should get you
> > quite a ways down the road.
> >
> > tim.
> >
> > > Hello
> > >
> > > i'd like to implement jcvs into my application but i don't
> > know how to start. could someone give me a hint on which
> > classes i have to implement in which order, to do a simple
> > import or commit?
> > > some general-questions: is it possible to get all available
> > modules on the cvs-server via the api? and is it also
> > possible to get a list of all revisions of a file?
> > >
> > > thanks a lot,
> > > matthias
> >
>

</pre>
<pre>Tim,

i can only find TestConnectPanel which needs other objects in it's constructor.
this way i walk up until JCVS which seems to be the root of the complete
program. if i create the following objects and pass them until i can create
TestConnectPanel i get a null pointer-exception.

JCVS jcvs = new JCVS();
Rectangle r1 = new Rectangle();
MainFrame mainFrame = new MainFrame(jcvs, "lalala",r1);
MainPanel mainPanel = new MainPanel(mainFrame);
TestConnectPanel temp = new TestConnectPanel(mainPanel);

this code is inside of the main-method of my new created class (extends JFrame).
But after compiling i get the following error:

java.lang.NullPointerException at
com.ice.jcvsii.MainPanel.<init>(MainPanel.java:45) at
com.ice.jcvsii.MainFrame.<init>(MainFrame.java:61) at
test.temp.main(temp.java:23) Exception in thread "main"

any ideas?? thanks...
Matthias



> -----Original Message-----
> From: Tim Endres [mailto:time@trustice.com]
> Sent: Monday, December 15, 2003 10:35 PM
> To: Minich, Matthias; jcvs@gjt.org
> Subject: Re: [jcvs] startup-questions...
>
>
> The CVS client protocol is implemented entirely in the
> com.ice.cvsc package.
> I recommend that you start with com.ice.jcvsii.TestPanel and
> after successfully
> connecting within your application, then move to
> com.ice.jcvsii.CheckoutPanel.
> Those are the two easiest functionalities to implement. That
> should get you
> quite a ways down the road.
>
> tim.
>
> > Hello
> >
> > i'd like to implement jcvs into my application but i don't
> know how to start. could someone give me a hint on which
> classes i have to implement in which order, to do a simple
> import or commit?
> > some general-questions: is it possible to get all available
> modules on the cvs-server via the api? and is it also
> possible to get a list of all revisions of a file?
> >
> > thanks a lot,
> > matthias
>

</pre>
<pre>or you can try my library built upon jcvs. It gives you highlevel functionality
with a documented api abstracting jcvs. I cannot promise anything about
compliance with recent version of jcvs, since
i don't have time to work on it. maybe later in the new year.
check out "cvslib"
http://www.technion.ac.il/~tzahi/


* - * - *
Tzahi Fadida
MSc Student
Information System Engineering Area
Faculty of Industrial Engineering & Management
Technion - Israel Institute of Technology
Technion City, Haifa, Israel 32000
Email TzahiFadida@MyRealBox.com
Technion Email: Tzahi@TX.Technion.ac.il
* - * - * - * - * - * - * - * - * - *

WARNING TO SPAMMERS: see at http://members.lycos.co.uk/my2nis/spamwarning.html

> -----Original Message-----
> From: Tim Endres [mailto:time@trustice.com]
> Sent: Monday, December 15, 2003 11:35 PM
> To: Minich, Matthias; jcvs@gjt.org
> Subject: Re: [jcvs] startup-questions...
>
>
> The CVS client protocol is implemented entirely in the com.ice.cvsc package.
> I recommend that you start with com.ice.jcvsii.TestPanel and after
> successfully
> connecting within your application, then move to com.ice.jcvsii.CheckoutPanel.
> Those are the two easiest functionalities to implement. That should get you
> quite a ways down the road.
>
> tim.
>
> > Hello
> >
> > i'd like to implement jcvs into my application but i don't know how
> to start. could someone give me a hint on which classes i have to
> implement in which order, to do a simple import or commit?
> > some general-questions: is it possible to get all available modules
> on the cvs-server via the api? and is it also possible to get a list
> of all revisions of a file?
> >
> > thanks a lot,
> > matthias
>
> --------------------------------------------------------------------
> View List Archive: <http://www.gjt.org/mlist/jcvs/threads.html>
> Search List Archive: <http://csdl.ics.hawaii.edu:8100/>
> To unsubscribe from this list:
> <http://www.gjt.org/servlets/MailingLists/UnsubForm.html/jcvs>
>
>
>


</pre>
<pre>The CVS client protocol is implemented entirely in the com.ice.cvsc package.
I recommend that you start with com.ice.jcvsii.TestPanel and after successfully
connecting within your application, then move to com.ice.jcvsii.CheckoutPanel.
Those are the two easiest functionalities to implement. That should get you
quite a ways down the road.

tim.

> Hello
>
> i'd like to implement jcvs into my application but i don't know how to start.
could someone give me a hint on which classes i have to implement in which
order, to do a simple import or commit?
> some general-questions: is it possible to get all available modules on the
cvs-server via the api? and is it also possible to get a list of all revisions
of a file?
>
> thanks a lot,
> matthias

</pre>
<pre>Hello

i'd like to implement jcvs into my application but i don't know how to start.
could someone give me a hint on which classes i have to implement in which
order, to do a simple import or commit?
some general-questions: is it possible to get all available modules on the
cvs-server via the api? and is it also possible to get a list of all revisions
of a file?

thanks a lot,
matthias

</pre>
<pre>I set up actions for three file types through the jCVS gui. Two seem to
work, the third gives me an IndexOutOfBoundsExceptions instead of
bringing up the editor I had specified in the associated action command.

</pre>
 
Forum Index » Profile for jcvslist » Messages posted by jcvslist
Go to:   
Powered by JForum 2.1.9 © JForum Team