I just finished committing as part of changelog version 1.4-dev a java based
cvs library.  To use it, you need the jar cvslib.jar that I submitted as
part of  MAVEN-968 (
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-968 ).

Basically it takes an interface very similar to the old command line
interface and connects and downloads the log information.  I tried it with
the Maven, Turbine, and Fulcrum projects and they all built the cvs history
reports perfectly.

However, I couldn't quite grok how the output streams from the command line
executable fit into the input streams of the parsers, and after much
flailing around with Piped streams etc, I eventually made it a two step
process, where the replacement for the command line executable,
CvsConnection.java merely reads all the data into a StringBuffer, and then
the same CVS parser recieves it as a input stream around the String.  So if
someone could give me some help here, that would be much appreciated!

Eric Pugh

> -----Original Message-----
> From: Eric Pugh [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 25, 2003 5:04 PM
> To: 'Maven Developers List'
> Subject: RE: Use Java based CVS library instead of command line
> executable
>
>
> I tried out the Netbeans javacvs library.  I was able without too much
> difficulty to write a unit test that ran the library using a
> command line
> pattern.
>
> I was able to run the log command and get back the
> information I expected.
> However, at this point I am a little bogged down in trying to make the
> CvsChangeLogGenerator work with the library..  Mostly my
> unfamiliarity with
> streams etc!
>
> However, if the Netbeans library's CPL license is compatible
> with the Apache
> license, then this code base seems acceptable.  The cvslib.jar is only
> 645kb, big, but not huge!
>
> Eric
>
> > -----Original Message-----
> > From: Jason van Zyl [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, October 25, 2003 12:22 AM
> > To: Maven Developers List
> > Subject: RE: Use Java based CVS library instead of command line
> > executable
> >
> >
> > On Fri, 2003-10-24 at 16:39, Erdfelt, Joakim wrote:
> > > > -----Original Message-----
> > > > From: Shatzer, Larry [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, October 24, 2003 4:21 PM
> > > > To: 'Maven Developers List'
> > > > Subject: RE: Use Java based CVS library instead of command line
> > > > executable
> > > >
> > > > > I think this is what ant strives for.  a 100% java solution
> > > > > with no external
> > > > > system tool requirements (they wanted to get away from the
> > > > > mess that is
> > > > > make).
> > > > >
> > > > > http://ant.apache.org/manual/intro.html
> > > > >
> > > > > Can we also research a ssh / scp replacement?
> > > >
> > > > Even ant shells out to cvs.
> > > >
> > > > http://ant.apache.org/manual/CoreTasks/cvs.html
> > > >
> > > > It's reason for not using jCVS is due to GPL and apache
> > > > license problems.
> >
> > The code was changed to LGPL some time ago at my request.
> It's fine to
> > use now license wise but I still wouldn't recommend it being used.
> >
> > > Ah, so it does.
> > > We have what? 5 scm's supported in maven now (in some form
> > or fashion)
> > > cvs, svn, starteam, perforce, and clearcase. (did I miss any?)
> > >
> > > keeping up with all of the scm's and all of versions of
> > ssh/scp would
> > > probably not be a good idea.
> > >
> > > so ... uhm ... I withdraw my previous comment. ;-)
> > >
> > > /* joakim erdfelt - corporate code gorilla - java junkie -
> > maven neophyte */
> > --
> > jvz.
> >
> > Jason van Zyl
> > [EMAIL PROTECTED]
> > http://tambora.zenplex.org
> >
> > In short, man creates for himself a new religion of a rational
> > and technical order to justify his work and to be justified in it.
> >
> >   -- Jacques Ellul, The Technological Society
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to