continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baz <brian.ew...@gmail.com>
Subject Re: Build Error
Date Wed, 02 Nov 2005 11:48:48 GMT
This is severely underdocumented, here's what you get by reading the
source code:

SCM contains an error message which says:
The scm url must be on the form 'scm:<scm
provider><delimiter><provider specific part>' where <delimiter> can be
either ':' or '|'.

However, this is misleading. If you check the code, what it should say is this:
The scm url must be on the form 'scm<delimiter><scm
provider><delimiter><provider specific part>' where <delimiter> can be
either ':' or '|'.
(DefaultScmManager checks for the delimiter in the 4th character.)

cvs supports a method called 'local', not to be confused with SCM's
support for a 'local' SCM provider:
scm|local|path_to_repository|module_name

As to meaning of repository and module_name - the meanings are as for
CVS, ie the repository is the root directory of where version control
stores all the versions of all your projects; individual projects are
called 'modules'.

Hence I'd expect if you have a directory structure something like:

C:\blah\myrepo\myproject1\project.xml
C:\blah\myrepo\myproject1\src\java\RocketPower.java
C:\blah\myrepo\myproject2\project.xml
C:\blah\myrepo\myproject2\src\java\waterbased\Hydrophones.java

Then you could use SCM URLs like
scm|local|C:/blah/myrepo/|myproject1
scm|local|C:/blah/myrepo/|myproject2

NB I used forward slashes in the URL. This doesnt matter too much as
SCM changes backslashes into forward slashes for you, but there are
some circumstances - e.g. writing the URL as a java string, or in a
properties file - where backslashes are special, so the habit of using
forward slashes in URLs avoids errors.

If you tried to use the ':' delimiter in the SCM URL above:
scm:local:C:/blah/myrepo/:myproject2
You can see the delimiter now splits the URL into 5 components where
SCM expected 4, hence it'll complain this is an invalid URL.

If you want to know more about CVS, you'll need to read up on it. The
manual is everywhere on the web, just google for it.

-Baz

On 11/2/05, Malcolm Wong Ho <Malcolm.WongHo@vcontractor.co.za> wrote:
> From the Continuum web interface I try to change the Scm Url from the
> 'Update Continuum Project' page, with this format
> 'scm:local:path_to_repository:module_name' then I get an error 'Enter
> the Maven SCM URL    [ You must provide an scm url ]', but if I enter
> this format 'scm:cvs:local:path_to_repository:module_name' it saves the
> changes. Another question, what is the module_name ?
> "This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on
this link http://www.vodacom.net/legal/email.aspx "
>

Mime
View raw message