You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pete <pe...@gmail.com> on 2006/09/14 11:50:14 UTC

need my Mojo to execute a CVS status command - help

Could any of you guys help with the code I would need to put in my
MOJO to execute a cvs command. The command is

cvs status -v filename

which isn't supported by maven-scm-providers-cvs. I see there is a
AbstractCvsStatusCommand but this issues a cvs update  I believe.

Is there a way I can execute an arbitary CVS command using the api ?
If so how ?

All I really need is the result as a String so I could parse it.
What I'm trying to do is determine the most recent CVS Tag, so that I
could write a MOJO to get the next tag, and pass this to the scm:tag
goal.

output from 'cvs status -v filename'   is like

File: ChangeLog        	Status: Needs Patch

Working revision:	1.3338.2.122
Repository revision:	1.3338.2.152	/cvs/gnome/gtk+/ChangeLog,v
Sticky Tag:		gtk-2-0 (branch: 1.3338.2)
Sticky Date:		(none)
Sticky Options:	(none)

Existing Tags:
	GTK_2_0_6                	(revision: 1.3338.2.147)
	GTK_2_0_5                	(revision: 1.3338.2.120)
	GTK_2_0_4                	(revision: 1.3338.2.115)
	GTK_2_0_3                	(revision: 1.3338.2.68)
	GTK_MULTIHEAD_MERGEPOINT_19_04_02	(revision: 1.3347)
	gtk-2-0                  	(branch: 1.3338.2)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org