maven-scm-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <jvan...@maven.org>
Subject Re: Your first user
Date Thu, 11 Dec 2003 20:02:10 GMT
On Thu, 2003-12-11 at 14:59, Emmanuel Venisse wrote:
> I start a refactoring for the process creation of a command.
> 
> We'll execute the command with only 2 line
> 
> cmd = manager.getCommand(repoInfo);
> cmd.execute;
> 
> It's more simple to use.

Nice!

> Emmanuel
> 
> ----- Original Message ----- 
> From: "Emmanuel Venisse" <emmanuel@venisse.net>
> To: <scm-dev@maven.apache.org>
> Sent: Wednesday, December 10, 2003 9:06 PM
> Subject: Re: Your first user
> 
> 
> > ----- Original Message ----- 
> > From: "Jason van Zyl" <jvanzyl@maven.org>
> > To: <scm-dev@maven.apache.org>
> > Sent: Wednesday, December 10, 2003 7:42 PM
> > Subject: Re: Your first user
> >
> >
> > > On Wed, 2003-12-10 at 12:56, Emmanuel Venisse wrote:
> > > > You need a mavenscm.properties file in your classpath with this
> > properties
> > > >
> > > > maven.scm.scmwrapper=org.apache.maven.genericscm.ScmWrapper
> > > >
> >
> maven.scm.commandwrapper.cvs=org.apache.maven.genericscm.provider.cvslib.com
> > > > mand.CvsCommandWrapper
> > > >
> >
> maven.scm.repository.cvs=org.apache.maven.genericscm.provider.cvslib.reposit
> > > > ory.CvsRepository
> > > >
> > > > I don't now if ScmWrapper is really nessary in code???
> > > >
> > > > I prefer the Plexus approach. I don't like propertiess file feature.
> > >
> > > Yes, I should be able set up everything entirely programmatically. This
> > > is especially important for embedding. From the client code I may take
> > > certain properties and transform them for use in SCM. The end-user
> > > employing client code like Maven shouldn't need to know anything about
> > > SCM properties. I would like to be able to take the <repository/> and
> > > create the necessary properties for SCM.
> >
> > I can set up property entirely programmatically, but it isn't extensive.
> > For Maven, properties can embedded in a default properties if we have it
> in
> > the new maven version, and for the <repository/>
> > I use the same format, so, you just pass the connection string to
> maven-scm
> >
> > > Could SCM just take a scm:// type URL? Just a thought.
> >
> > Yes, I like it, but if I use this format, I hava some problems to find the
> > scm delimiter.
> > Actually, I use this format for scm string scm[delimiter]cvs[delimiter]...
> > Perhaps, I can force the delimiter to 2 format like ":" and "|", so I can
> > find the used delimiter in the scm stringafter scmtype (cvs, svn...)
> >
> >
> > >
> > > But I will try out the example and give you some feedback.
> > >
> > > > Emmanuel
> > > >
> > > > ----- Original Message ----- 
> > > > From: "Emmanuel Venisse" <emmanuel@venisse.net>
> > > > To: <scm-dev@maven.apache.org>
> > > > Sent: Wednesday, December 10, 2003 6:51 PM
> > > > Subject: Re: Your first user
> > > >
> > > >
> > > > > Cool.
> > > > >
> > > > > I don't test the full process, but I think it's work.
> > > > >
> > > > > A sample code :
> > > > >
> > > > > RepositoryInfo repoInfo = new RepositoryInfo();
> > > > > repoInfo.setUrl("scm:cvd:ext:evenisse@....."); // like pom scm url
> > > > > ScmWrapper wrapper = ScmFactory.getScmWrapper(repoInfo);
> > > > > CommandWrapper cw = wrapper.getCommandWrapper();
> > > > > Command cmd = cw.getCommand(CheckOutCommand.NAME);
> > > > > cmd.setWorkingDirectory("Your Directory");
> > > > > cmd.execute();
> > > > >
> > > > > Emmanuel
> > > > >
> > > > > ----- Original Message ----- 
> > > > > From: "Jason van Zyl" <jvanzyl@maven.org>
> > > > > To: <scm-dev@maven.apache.org>
> > > > > Sent: Wednesday, December 10, 2003 6:36 PM
> > > > > Subject: Your first user
> > > > >
> > > > >
> > > > > > Hi Emmanuel,
> > > > > >
> > > > > > The first thing I want to provide in the Maven IDE is to be
able
> to
> > view
> > > > > > available projects, select one, and checkout the sources and
build
> > the
> > > > > > project.
> > > > > >
> > > > > > So looking for some little snippets of code for setting up SCM
and
> > what
> > > > > > information I need to pass in from the POM to check out the
code
> for
> > the
> > > > > > selected project.
> > > > > >
> > > > > > Can you give me some pointers?
> > > > > >
> > > > > > -- 
> > > > > > jvz.
> > > > > >
> > > > > > Jason van Zyl
> > > > > > jason@zenplex.com
> > > > > > 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
> > > > > >
> > > > > >
> > > > >
> > > -- 
> > > jvz.
> > >
> > > Jason van Zyl
> > > jason@zenplex.com
> > > 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
> > >
> > >
> >
> >
-- 
jvz.

Jason van Zyl
jason@zenplex.com
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


Mime
View raw message