maven-scm-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Venisse <emman...@venisse.net>
Subject Re: How to use scm from Java
Date Tue, 14 Mar 2006 16:34:30 GMT
I must write a doc about it.

1- Create a manager that extends org.apache.maven.scm.manager.AbstractScmManager
2- ScmProvider provider = manager.getProviderByUrl( scmUrl )
3- provider.checkout(...)

If you create your own manager, you'll need to add in it all providers, if you don't want
to do it, 
you can add Plexus ScmManager like we do it in maven-scm-client

Emmanuel

Zsolt a écrit :
> Hi,
> 
> how can I use maven-scm from Java.
> 
> For example I want to checkout something from CVS or Subversion fro my Java
> application instead of starting "cvs" or "svn" via shell.
> 
> Zsolt
> 
> 
> 
> 
> 
> 
> 


Mime
View raw message