org.apache.maven.model
Class Scm

java.lang.Object
  extended by org.apache.maven.model.Scm
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

public class Scm
extends Object
implements Serializable, Cloneable, InputLocationTracker

The <scm> element contains informations required to the SCM (Source Control Management) of the project.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Scm()
           
 
Method Summary
 Scm clone()
          Method clone.
 String getConnection()
          Get the source control management system URL that describes the repository and how to connect to the repository.
 String getDeveloperConnection()
          Get just like connection, but for developers, i.e. this scm connection will not be read only.
 InputLocation getLocation(Object key)
          Gets the location of the specified field in the input source.
 String getTag()
          Get the tag of current code.
 String getUrl()
          Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
 void setConnection(String connection)
          Set the source control management system URL that describes the repository and how to connect to the repository.
 void setDeveloperConnection(String developerConnection)
          Set just like connection, but for developers, i.e. this scm connection will not be read only.
 void setLocation(Object key, InputLocation location)
          Sets the location of the specified field.
 void setTag(String tag)
          Set the tag of current code.
 void setUrl(String url)
          Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scm

public Scm()
Method Detail

clone

public Scm clone()
Method clone.

Overrides:
clone in class Object
Returns:
Scm

getConnection

public String getConnection()
Get the source control management system URL that describes the repository and how to connect to the repository. For more information, see the URL format and list of supported SCMs. This connection is read-only.

Returns:
String

getDeveloperConnection

public String getDeveloperConnection()
Get just like connection, but for developers, i.e. this scm connection will not be read only.

Returns:
String

getLocation

public InputLocation getLocation(Object key)
Description copied from interface: InputLocationTracker
Gets the location of the specified field in the input source.

Specified by:
getLocation in interface InputLocationTracker
Parameters:
key -
Returns:
InputLocation

getTag

public String getTag()
Get the tag of current code. By default, it's set to HEAD during development.

Returns:
String

getUrl

public String getUrl()
Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.

Returns:
String

setConnection

public void setConnection(String connection)
Set the source control management system URL that describes the repository and how to connect to the repository. For more information, see the URL format and list of supported SCMs. This connection is read-only.

Parameters:
connection -

setDeveloperConnection

public void setDeveloperConnection(String developerConnection)
Set just like connection, but for developers, i.e. this scm connection will not be read only.

Parameters:
developerConnection -

setLocation

public void setLocation(Object key,
                        InputLocation location)
Description copied from interface: InputLocationTracker
Sets the location of the specified field.

Specified by:
setLocation in interface InputLocationTracker
Parameters:
key -
location -

setTag

public void setTag(String tag)
Set the tag of current code. By default, it's set to HEAD during development.

Parameters:
tag -

setUrl

public void setUrl(String url)
Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.

Parameters:
url -


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.