[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 
cvs history  XML
Forum Index » JCVS Developers
Author Message
lexx_



Joined: 04/03/2005 06:45:44
Messages: 2
Offline

hi,

i'm trying to get the history for some files out of a repository, with "regular" cvs i'd be using
cvs <path to rep> history -e -f <filename>

the problem is, that cvs ignores the -f(ilename) parameter, unless you specify which kind of report you want.

i'm now looking for a way to specify the -e parameter for jcvs, but unfortunatley, the tutorial was not very helpful for this specific matter...

thanks in advance
[Email]
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

All command arguments for jCVS are placed into the text field at the top of your Project Window. The arguments placed there are included with whatever command you execute from the menus.
[Email] [WWW]
lexx_



Joined: 04/03/2005 06:45:44
Messages: 2
Offline

thanks for the quick response.

i'd like to add the parameters programmatically... could you tell me how to do that? (would save me some time browsing the source finding the right position)
[Email]
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

You can initialize the arguments to an empty list, then add arguments, or create an argument vector and then set it.

Case #1


Case #2

[Email] [WWW]
Anonymous



I am facing a problem with options using cvs history with arguments.
The result of my CvsRequest looks like the options are ignored.

I tried all your examples. Is there something wrong with my code.
Please take a look ...

###
CVSRequest cvsRequest = new CVSRequest();
cvsRequest.setPServer(true);
cvsRequest.setHostName("cvs.mn.man.de");
//cvsRequest.setPort(2401);
cvsRequest.setConnectionMethod(CVSRequest.METHOD_INETD);

String scrambledPassword = CVSScramble.scramblePassword("password", 'A');
cvsRequest.setUserName("u02ag");
cvsRequest.setPassword(scrambledPassword);

cvsRequest.setRootDirectory("/cvsroot/application/development/id");
cvsRequest.setRootRepository("/cvsroot/application/development/id");
cvsRequest.setRepository("");
cvsRequest.setLocalDirectory(".");

cvsRequest.setDirEntry(null);

cvsRequest.execInCurDir = true;

CVSEntryVector entries = new CVSEntryVector();
cvsRequest.setEntries(entries);

// cvsRequest.setCommand("history -a -x T");
cvsRequest.setCommand("history");
cvsRequest.setArguments( new CVSArgumentVector() );
CVSArgumentVector arguments = CVSArgumentVector.parseArgumentString("-x T");
cvsRequest.setArguments(arguments);

cvsRequest.allowGzipFileMode = false;
cvsRequest.setGzipStreamLevel(0);

cvsClient = new CVSClient("cvs.mn.man.de", CVSClient.DEFAULT_CVS_PORT );
cvsClient.setTempDirectory("/Temp");

cvsClient.processCVSRequest(cvsRequest, cvsResponse);
System.out.println("CVS Error: " + cvsResponse.getErrorCode());
System.out.println("CVS Respo: " + cvsResponse.getDisplayResults());

###


Thanks for any help!!!

Regards Toni
Anonymous



Debugging the CVSClient I found out there is a Flag named

<sendArguments> for a CVSRequest

The Flag has to be true and must be set for the CVSRequest object.

Thanks Toni
 
Forum Index » JCVS Developers
Go to:   
Powered by JForum 2.1.9 © JForum Team