[Logo] JCVSForum - Community Support For JCVS Users and Developers
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
I need a ant CVSChangeLog Report type of thing  XML
Forum Index -> JCVS Developers
Author Message
jimshing



Joined: 13/10/2005 22:17:28
Messages: 1
Offline

Okay, Newbie Question. Please help.

Yes, Ant has CVSChangeLog task. I want that type of report but I don't want to do it via Ant because it requires a local CVS client. I want to do it all in jcvs.

Additional Information, I don't want to bring the files locally, I just want to point at the repository and get the following type of information:

<entry>
<date>2002-03-06</date>
<time>12:00</time>
<author>Peter Donald</author>
<file>
<name>org/apache/myrmidon/build/AntlibDescriptorTask.java</name>
<revision>1.3</revision>
<prevrevision>1.2</prevrevision>
</file>
<msg><![CDATA[Use URLs directly rather than go via a File.

This allows templates to be stored inside jar]]></msg>
</entry>

It looks like using the rlog command is the place to start but I have no idea where to go from there.

Please Help a jcvs newbie.

Thanks

Jim
[Email]
camrit



Joined: 22/08/2007 05:25:40
Messages: 3
Offline

Hi Tim,
Firstly, thanks for the excellent tool!
I searched the jCVS Mailing list archives quite extensively, and this thread seemed closest to what I am looking for.
Can this Author date log information be read from the CVS with the current jCVS version?

Thanks in advance,
Regards,
Chints
[Email]
time


[Avatar]

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

From what I can remember off the top of my head, there is currently no "implementation" of the rlog command. However, to implement such a command would seem a trivial effort, since it appears to be a "non-working-directory" command. In other words, it does not require you to checkout a working directory, and so does not require setting up all of that information to run the command.

Sadly, at the moment my job is demanding all of my time, so I do not have the time to make the mods. If you are interested in trying to write the code, I would be very happy to help you and answer any questions you might have. Otherwise, if you ping me in a month or so, I may have the time to knock this one out.
[Email] [WWW]
camrit



Joined: 22/08/2007 05:25:40
Messages: 3
Offline

Hi Tim,

That's a great idea, and its exactly what I need, i.e. a "non-working-directory" command (as the number of files in the CVS is too large for a check out!).
I would be very glad if you could do this, or give me pointers on what I should change and where.

Thanks in advance,

Regards,
Chints
[Email]
time


[Avatar]

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

If I get a chance (which is a serious longshot), I will take a stab at this, since it appears to be desired by several, and I need to add a few patches. Ping me in a week if you remember.
[Email] [WWW]
camrit



Joined: 22/08/2007 05:25:40
Messages: 3
Offline

Hi Tim,
As I am in need of such a tool, I was wondering if you could give me pointers and I could help you do it.
Regards,
Chints
[Email]
time


[Avatar]

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

Well, in theory, this request is only different from normal requests in that is does not involve a working directory. So you would just build up the CVSRequest in all the same ways, except you would not have to send any "CVSEntrys" to the server, and you would not expect to have to process anything related to CVSEntry's in the response.

So, I suppose that I would start with the "checkout" command, which has the perfect little "universe" defined in the CheckOutPanel code in JCVS II. The code is completely self-contained in that class I believe. Since the checkout command does not have a working directory to begin with, it does not require one to send the request, and there are not CVSEntry's to send either. Of course, the command will in turn process the entries being sent down as it builds the working directory, which is different than your case.

You will probably need to define a CVSUserInterface subclass to provide to capture the output, since you are not looking to get files, but stdout and stderr I think, but I am not sure about this since I have not looked at the command in question.

Between those two classes, and the examples (check out the JavaScripts in the latest download, which are insightful), I think you can put together enough code to get started, then we can deal with what you discover.
[Email] [WWW]
 
Forum Index -> JCVS Developers
Go to:   
Powered by JForum 2.1.7 © JForum Team