[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>I tried to do what Tim suggested, but I'm here again...

Tim told me to setup an Entry for each file to be processed, o I added:

CVSEntry entry = new CVSEntry();
entry.setLocalDirectory("/home/paolo/prova_checkout");
entry.setRepository("Codemart/");
entry.setName("CVSLogger.java");

where "/home/paolo/prova_checkout" is the local directory in which I
executed the checkout, "Codemart/" is the module contained in CVS server
and "CVSLogger.java" is the file I want to log.

The command I use is

String command = new String("log:A:FMA:cdefimoukt: -l -R ");

First `A' flag means that each entry must be parsed; FMA flags mean to
send module name (in my case that should be "Codemart"), entries and
arguments.

At this point Tim said to add an argument:

CVSArgumentVector arguments = new CVSArgumentVector();
arguments.appendArgument("CVSLogger.java");

If I launch my app, that's the result:

Opening server '514@arale.lips.dist.unige.it'...
Negotiating cvs protocol...
Sending command request, 'log'...
Reading server response...
Closing CVS server connection.
Command completed with 'error' status.
cvs [server aborted]: absolute pathname
`/home/paolo/prova_checkout/CVSLogger.java' illegal for server

If I understand correctly server message, it receives the local path
instead of the remote path ("/home/paolo/prova_checkout" is where I
executed checkout on my machine). Where am I wrong?

Thanks for your time

--
Saluti,
Paolo

</pre>
<pre>Did you try adding an entry to the list for the file you want? Also,
you could try using "rlog" instead of "log".

Ray

</pre>
<pre>Tim Endres wrote:

> You cannot put the file name in the CVSSpec. You need to add it to
the arguments
> of the command via the argument vector.
>
> tim.


Well, I tried to set

command = "log:N:MA:cdefimoukt: -R -l"

and

argumentStr = "DBUpdater.java";

In fact, in the source code of `CheckOutPanel.java', there is the
following statement,

CVSArgumentVector arguments =
CVSArgumentVector.parseArgumentString(argumentStr);

which parses `argumentStr' and sets the up the argument vector. I
launched my app and this is what I can see:

CVSRequest: command=log
Opening server '514@arale.lips.dist.unige.it'...
Negotiating cvs protocol...
Sending command request, 'log'...
Reading server response...
Closing CVS server connection.
Command completed with 'ok' status.
cvs server: Logging .

** The command completed successfully.

The result doesn't change if I change the name of the file I want to log
or if the name points to a non existing file in my repository. Could you
tell me where I can read documentation or what are the source file
responsible to execute the log of a file?

The result I expect is something like

M RCS file: /home/cvspublic/apache-1.2/src/alloc.h,v
M Working file: apache-1.2/src/alloc.h
M head: 1.22
M branch:
M locks: strict
M keyword substitution: kv
M total revisions: 23; selected revisions: 23
M description:
M ----------------------------
M revision 1.22
M date: 1998/04/13 11:45:37; author: coar; state: Exp; lines: +8 -3
M
M Reword the licence text surrounding the use of the name "Apache"
M in derived products. This will be in effect as of 1.2.7 and
M following. (It's already in place for 1.3 in development.)
M ----------------------------
M revision 1.21
M date: 1997/05/27 04:14:19; author: fielding; state: Exp; lines: +1 -0
M Two problems were introduced by the two "error responses have wrong
headers"
M patches committed a couple weeks ago. The first is that a NULL table
M causes mod_log_config to SIGSEGV on a call to table_get; the second is
M that Location needs to be added to the output header table for redirects.
M
M Submitted by: Roy Fielding and Ed Korthof
M Reviewed by: Jim Jagielski, Randy Terbush

and so on.

Thanks a lot for your help

--
Saluti,
Paolo

</pre>
<pre>Hi. I need to use jCVS and cvsc to log a file in a CVS repository, in a tool I'm
building. I tried to read sources and I found in `CheckOutPanel.java' the list
of steps I need to execute a checkout. Then I tried to readapt them to have a
log of a file.
Looking at `CVSRequest.java' in parseControlString method I discovered a list of
flags I can use (btw, there is a reference to CVSRequestSpec.html not valid).
Then I set a command as follows,

':log:N:MA:cdefimoukt: CVSLogger.java'

in order to send the root and the module to cvs server; `CVSLogger.java' is the
file whose I need the log.
I attach my source code (which is mostly equal to ChekOutPanel.java) Please,
could you tell me hot to solve my problem? Thank for your time

/***************************************************************/
localDirectory = CVSCUtilities.stripFinalSeparator(localDirectory);
int cvsPort = computePortNum(thisRep.getConnMethod(), thisRep.isPServer());

//argumentStr = "DBUpdater.jav";
CVSArgumentVector arguments = CVSArgumentVector.parseArgumentString(
argumentStr);
if (!checkData(arguments)) return;
System.out.println("" + arguments);

File localRootDir = new File(localDirectory);
if (!localRootDir.exists() && !listingModules)
{
if (!localRootDir.mkdirs())
{
System.err.println("Cannot create local root directory");
return;
}
}

CVSRequest request = new CVSRequest();

//String checkOutCommand = ":co:N:ANP:deou:";
command = "log:N:MA:cdefimoukt: -R -l";

if (!request.parseControlString(command ))
{
System.err.println("ERROR: Checkout command parse failed");
return;
}
//request.setServerCommand("log");
request.sendArguments = true;
System.out.println("" + request.toString());

CVSEntryVector entries = new CVSEntryVector();
if (!listingModules)
{
arguments.appendArgument(thisRep.getModule());
}


CVSClient client = new CVSClient();
client.setHostName(thisRep.getHostName());
client.setPort(cvsPort);


CVSProject project = new CVSProject(client);


CVSProjectDef projectDef = new CVSProjectDef(
thisRep.getConnMethod(), thisRep.isPServer(), false,
thisRep.getHostName(), thisRep.getUserName(),
thisRep.getCvsRoot(), thisRep.getModule());

project.setProjectDef(projectDef);

project.setUserName(thisRep.getUserName());
project.setTempDirectory(tempDir);
project.setRepository(thisRep.getModule());
project.setRootDirectory(thisRep.getCvsRoot());
project.setLocalRootDirectory(localDirectory);
project.setPServer(thisRep.isPServer());
project.setConnectionPort(cvsPort);
project.setConnectionMethod(thisRep.getConnMethod());

project.setSetVariables(null);

project.setServerCommand(establishServerCommand(thisRep.getHostName(),
thisRep.getConnMethod(), thisRep.isPServer()));

project.setAllowsGzipFileMode(false);
project.setGzipStreamLevel(0);

if (thisRep.isPServer())
{
String scrambled = CVSScramble.scramblePassword(thisRep.getPassword(),
'A' );
project.setPassword(scrambled);
}
else if (thisRep.getConnMethod() == CVSRequest.METHOD_SSH )
{
project.setPassword(thisRep.getPassword());
}

if (thisRep.getConnMethod() == CVSRequest.METHOD_RSH )
{
establishRSHProcess(project);
}

// Finally, we must make sure that the Project has its root entry, as
// CVSProject will not be able to create it from the context that the
// server will send with the checkout.

project.establishRootEntry(thisRep.getCvsRoot());

// UNDONE
// IF IT IS ALREADY OPEN, we should tell the ProjectFrame to do this!!!
//

String title = thisRep.getModule() + " project";

// NOTE that all of these redundant setters on request are
// needed because we are not using the typicall call to
// CVSProject.performCVSCommand(), which calls most of
// these setters for us.

request.setPServer(thisRep.isPServer());
request.setUserName(thisRep.getUserName());

if (thisRep.isPServer() ||
thisRep.getConnMethod() == CVSRequest.METHOD_SSH )
{
request.setPassword( project.getPassword() );
}

request.setConnectionMethod(thisRep.getConnMethod());
request.setServerCommand(project.getServerCommand());
request.setRshProcess(rshPath);

request.setPort(cvsPort);
request.setHostName(client.getHostName() );

request.setRepository(thisRep.getModule());
request.setRootDirectory(thisRep.getCvsRoot());
request.setRootRepository(thisRep.getCvsRoot());
request.setLocalDirectory(localRootDir.getPath());

request.setSetVariables(project.getSetVariables());

request.responseHandler = project;

request.traceRequest = CVSProject.overTraceRequest;
request.traceResponse = CVSProject.overTraceResponse;
request.traceTCPData = CVSProject.overTraceTCP;
request.traceProcessing = CVSProject.overTraceProcessing;

request.allowGzipFileMode = project.allowsGzipFileMode();
request.setGzipStreamLevel(project.getGzipStreamLevel());

request.setEntries(entries);
request.appendArguments(arguments);

request.setUserInterface(this);

CVSResponse response = new CVSResponse();

client.processCVSRequest(request, response);
if (!listingModules)
{
project.processCVSResponse(request, response);
if (request.getArguments().containsArgument( "-P") ||
request.getArguments().containsArgument( "-r" ) ||
request.getArguments().containsArgument( "-D" ) )
{
project.pruneEmptySubDirs(request.handleEntries);
}
}

// Final phase
String resultStr = response.getDisplayResults();

try
{
PrintStream tmp = System.out;
PrintStream out = new PrintStream(new FileOutputStream("./antan.log"));
PrintStream tee = new TeeStream(System.out, out);
System.setOut(tee);
System.out.println(resultStr);
System.setOut(tmp);
System.out.println("Ciao");
out.close();
}
catch (FileNotFoundException e)
{
}
//response.deleteTempFiles();
/*
response.printResponse(new PrintStream(new FileOutputStream("antan.log")));
*/

if (response.getStatus() == CVSResponse.OK )
{
uiDisplayProgressMsg("Checkout executed with success");
if (!listingModules)
{
File rootDirFile = new File(request.getLocalDirectory() +
"/" + request.getRepository());
//
/*ProjectFrame.openProject
( rootDirFile, request.getPassword() );*/
}
}
else
{
this.uiDisplayProgressMsg("Failed to checkout");
}

if (response != null && ! request.saveTempFiles)
{
response.deleteTempFiles();
}


</pre>
<pre>Hi there,

when you check out files via the com.ice.cvsc-package the last-changed
timestamps will allways reflect the time when the checkedout took place and
not the time when the files were in fact last changed.

I guess it's because the CVSClient ignores (does not accept) Mod-time
responses. Before JAVA 2 it was hard to set that timestamp to a file in a
platform independend way. But since JCVS 5.4.x requires JRE 1.4 this is no
longer an issue.

Are you interested in a patch to support Mod-time responses?


Der ULF!

_________________________________________________________________
Schützen Sie Ihren Posteingang vor unerwünschten E-Mails.
http://www.msn.de/antispam/prevention/junkmailfilter Jetzt
Hotmail-Junk-Filter aktivieren!

</pre>
<pre>Hi,

yes I tried it. The output panel shows the error text

cvs server: nothing known about -F


When I do the normal "Tag files" item with tag name "-F mytag" everything
works fine.

Winfried

>
>
> Hi,
>
> Have you tried this:
>
> jcvsii.projectMenuItem.Selection.MoveTag=Move existing
> Tag:CVS:tag:a:EAUF:deou:-F
>
> options go after the last colon.
> tim.
>
> > Hello,
> >
> > I want to configure jCVS 5.4.1 so that I have a command to
> move an existing
> > tag for the selected files. In the configuration file I
> tried to insert a
> > line similarly to the normal tag command line appended by
> the option "-F".
> > But it did not work.
> >
> > I tried:
> >
> > jcvsii.projectMenuItem.Selection.MoveTag=Move existing Tag:CVS:tag
> > -F:a:EAUF:deou:
> > -> jCVS tried to tag the files with tag "-F"
> >
> > jcvsii.projectMenuItem.Selection.MoveTag=Move existing
> > Tag:CVS:tag:a:EAUF:deou:
> > -> jCVS tried to tag the file "-F"
> >
> > Any other positions of the options didn't work as well.
> >
> > How must the command line look like?
> >
> > Mit freundlichen Grüßen
> > --
> > Winfried Vorbeck
> > Brockhaus Software & Consulting AG
> > Pierbusch 17
> > 44536 Lünen
> >
> > Telefon +49(0)231/9875-573 | mailto:winfried.vorbeck@brockhaus-ag.de
> > Telefax +49(0)231/9875-540 | http://www.brockhaus-ag.de
> > ###########################################
> >
> > This message has been scanned by F-Secure Anti-Virus for
> Microsoft Exchange.
> > For more information, connect to http://www.F-Secure.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>
> >
>
> --------------------------------------------------------------------
> 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>
>
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

</pre>
<pre>Hi,

Have you tried this:

jcvsii.projectMenuItem.Selection.MoveTag=Move existing
Tag:CVS:tag:a:EAUF:deou:-F

options go after the last colon.
tim.

> Hello,
>
> I want to configure jCVS 5.4.1 so that I have a command to move an existing
> tag for the selected files. In the configuration file I tried to insert a
> line similarly to the normal tag command line appended by the option "-F".
> But it did not work.
>
> I tried:
>
> jcvsii.projectMenuItem.Selection.MoveTag=Move existing Tag:CVS:tag
> -F:a:EAUF:deou:
> -> jCVS tried to tag the files with tag "-F"
>
> jcvsii.projectMenuItem.Selection.MoveTag=Move existing
> Tag:CVS:tag:a:EAUF:deou:
> -> jCVS tried to tag the file "-F"
>
> Any other positions of the options didn't work as well.
>
> How must the command line look like?
>
> Mit freundlichen Grüßen
> --
> Winfried Vorbeck
> Brockhaus Software & Consulting AG
> Pierbusch 17
> 44536 Lünen
>
> Telefon +49(0)231/9875-573 | mailto:winfried.vorbeck@brockhaus-ag.de
> Telefax +49(0)231/9875-540 | http://www.brockhaus-ag.de
> ###########################################
>
> This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
> For more information, connect to http://www.F-Secure.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>Hello,

I want to configure jCVS 5.4.1 so that I have a command to move an existing
tag for the selected files. In the configuration file I tried to insert a
line similarly to the normal tag command line appended by the option "-F".
But it did not work.

I tried:

jcvsii.projectMenuItem.Selection.MoveTag=Move existing Tag:CVS:tag
-F:a:EAUF:deou:
-> jCVS tried to tag the files with tag "-F"

jcvsii.projectMenuItem.Selection.MoveTag=Move existing
Tag:CVS:tag:a:EAUF:deou:
-> jCVS tried to tag the file "-F"

Any other positions of the options didn't work as well.

How must the command line look like?

Mit freundlichen Grüßen
--
Winfried Vorbeck
Brockhaus Software & Consulting AG
Pierbusch 17
44536 Lünen

Telefon +49(0)231/9875-573 | mailto:winfried.vorbeck@brockhaus-ag.de
Telefax +49(0)231/9875-540 | http://www.brockhaus-ag.de
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

</pre>
<pre>If you wish to test any capability of the com.ice.cvsc package, you can use the
jCVS II
application. This also allows you to capture a trace of the CVS protocol, which
you can
analyze for hints as to what may be wrong with your use of the package.

As for the specific functionality of exporting a specific tag, it works fine. I
suspect that
you are not properly setting the command arguments.

As far as a tag per version of file, that should not cause a problem.

tim

> Hi,
>
> I am trying to run cvs through the cvs client-server protocol with the help of
the com.ice.cvsc package. It seems not to work right. While running the command
line cvs I can checkout/export any file by its tag, when I am running the cvs
through the client - it always gives me an error of: cvs [export aborted]: no
such tag ...
> Did anyone try this already? Should it work?
>
> Another question. Can it cause a problem that I am adding a tag to each
version of each file, in case I have a real big amount of files (thousands) ?
>
> Thanks,
> Alexa Sondhi

</pre>
<pre>Hi,

I am trying to run cvs through the cvs client-server protocol with the help of
the com.ice.cvsc package. It seems not to work right. While running the command
line cvs I can checkout/export any file by its tag, when I am running the cvs
through the client - it always gives me an error of: cvs [export aborted]: no
such tag ...
Did anyone try this already? Should it work?

Another question. Can it cause a problem that I am adding a tag to each version
of each file, in case I have a real big amount of files (thousands) ?

Thanks,
Alexa Sondhi
</pre>
<pre>Hi,

I am using JCVS 5.4.1 as my CVS client.

After importing a project to CVS, i do checkout and later when i want to add
more files to the existing project (text and binary files).

Text files are adding properly but there is a problem with binary files
(.jpg, .gif .swf and others) it is adding as a text file in CVS.

When i checkout the file my files are getting scrambled.

Please let me know how to overcome this issue.

Thanks alot. Please do reply ASAP.

Regards,
Vijay

Ph : 040-55564127
Mobile : 09849050754
</pre>
<pre>Hello,

I am in a position where I need to access CVS from a Java environment.
Rather than re-invent the wheel, I'd like to use jCVS. I am developing
a commercial product and I absolutely cannot make it open source. So
that rules out the GPL. However, I see in the documentation that the
com.ice.cvsc code is LGPL.

I'm no legal expert and it seems to me that the LGPL is somewhat
confusing when it comes to Java libraries (since it was written from a C
perspective). Anyway, it seems to me that the following is true: the
code from the com.ice.cvsc package may be "used" (see below) provided:

1) The original com.ice.cvsc source code is not modified.
2) The original com.ice.cvsc source code is made available with any
distribution of the library.

where "used" means that the com.ice.cvsc classes are invoked from
proprietary, closed source classes. The proprietary classes may be
bundled into a Java application and/or J2EE EAR/WAR that references
com.ice.cvsc as an external library.

If you are still reading this, thank you. I'd like to know if my
interpretation is correct. I'd also like to know if the com.ice.cvsc
package provides a complete CVS client, i.e. it would be enough. Also,
I would like to know what the proper packaging scheme is for using the
com.ice.cvsc package under the LGPL while not using any of the other
code (and invoking the GPL). Would it be acceptable to package the
com.ice.cvsc classes in a separate JAR file (separate from my
proprietary code and separate from any GPL code)?

Thanks,
Ray

</pre>
<pre>i didn't try to accomodate things like that. but the simplest way to check if
you can do it is to add it to
the "arugmentStr" of the checkout string. i.e: "-c"
if its a global argument, i understand you need to put it in "[-c]"
good luck.

> -----Original Message-----
> From: Minich, Matthias [mailto:Matthias.Minich@t-systems.com]
> Sent: Tuesday, December 23, 2003 1:00 PM
> To: jcvs@server.gjt.org
> Subject: RE: [jcvs] Implementing com.ice.cvsc
>
>
> yeah, some very helpful answer... I don't want to complain about your
> work Tzahi, it is useful and does some great work for me checking out
> modules and handling eventual errors. But I need to perform some
> other operations as checkout -c and import / export. So I guess this
> is the right place to ask --> not everyone is an expert in Java and
> so am I (began to study ComputerScience).
> So if someone has an idea on what went wrong in my code and/or can
> provide me with some easy(!) code-snippets, I'd be very grateful.
>
> kind 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
>
>
>
> > -----Original Message-----
> > From: jcvs-request@server.gjt.org
> > [mailto:jcvs-request@server.gjt.org]On
> > Behalf Of Tzahi Fadida
> > Sent: Friday, December 19, 2003 10:58 PM
> > To: Minich, Matthias; jcvs@gjt.org
> > Subject: RE: [jcvs] Implementing com.ice.cvsc
> >
> >
> > Well, first 10x.
> > CVSImplementation took me a while to get to a certain
> > standard for a server
> > application.
> > as for your code, just look in my code i use the same code in
> > every function.
> > If you just need the common cvs commands just use my lib, if
> > you want to break
> > away from that, you are on your
> > own.
> > good luck.
> >
> > * - * - *
> > 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: Minich, Matthias [mailto:Matthias.Minich@t-systems.com]
> > > Sent: Friday, December 19, 2003 6:12 PM
> > > To: jcvs@gjt.org
> > > Subject: RE: [jcvs] Implementing com.ice.cvsc
> > >
> > >
> > > 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--------------------------
> > >
> > > --------------------------------------------------------------------
> > > 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>
> > >
> > >
> > >
> >
> >
> > --------------------------------------------------------------------
> > 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>
> >
>
> --------------------------------------------------------------------
> 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>yeah, some very helpful answer... I don't want to complain about your work
Tzahi, it is useful and does some great work for me checking out modules and
handling eventual errors. But I need to perform some other operations as
checkout -c and import / export. So I guess this is the right place to ask -->
not everyone is an expert in Java and so am I (began to study ComputerScience).
So if someone has an idea on what went wrong in my code and/or can provide me
with some easy(!) code-snippets, I'd be very grateful.

kind 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



> -----Original Message-----
> From: jcvs-request@server.gjt.org
> [mailto:jcvs-request@server.gjt.org]On
> Behalf Of Tzahi Fadida
> Sent: Friday, December 19, 2003 10:58 PM
> To: Minich, Matthias; jcvs@gjt.org
> Subject: RE: [jcvs] Implementing com.ice.cvsc
>
>
> Well, first 10x.
> CVSImplementation took me a while to get to a certain
> standard for a server
> application.
> as for your code, just look in my code i use the same code in
> every function.
> If you just need the common cvs commands just use my lib, if
> you want to break
> away from that, you are on your
> own.
> good luck.
>
> * - * - *
> 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: Minich, Matthias [mailto:Matthias.Minich@t-systems.com]
> > Sent: Friday, December 19, 2003 6:12 PM
> > To: jcvs@gjt.org
> > Subject: RE: [jcvs] Implementing com.ice.cvsc
> >
> >
> > 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--------------------------
> >
> > --------------------------------------------------------------------
> > 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>
> >
> >
> >
>
>
> --------------------------------------------------------------------
> 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>Well, first 10x.
CVSImplementation took me a while to get to a certain standard for a server
application.
as for your code, just look in my code i use the same code in every function.
If you just need the common cvs commands just use my lib, if you want to break
away from that, you are on your
own.
good luck.

* - * - *
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: Minich, Matthias [mailto:Matthias.Minich@t-systems.com]
> Sent: Friday, December 19, 2003 6:12 PM
> To: jcvs@gjt.org
> Subject: RE: [jcvs] Implementing com.ice.cvsc
>
>
> 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--------------------------
>
> --------------------------------------------------------------------
> 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>
 
Forum Index » Profile for jcvslist » Messages posted by jcvslist
Go to:   
Powered by JForum 2.1.9 © JForum Team