Package org.apache.maven.model
Class Scm
- java.lang.Object
-
- org.apache.maven.model.Scm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class Scm extends java.lang.Object implements java.io.Serializable, java.lang.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
Constructors Constructor Description Scm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scmclone()Method clone.java.lang.StringgetConnection()Get the source control management system URL that describes the repository and how to connect to the repository.java.lang.StringgetDeveloperConnection()Get just likeconnection, but for developers, i.e.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.java.lang.StringgetTag()Get the tag of current code.java.lang.StringgetUrl()Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.voidsetConnection(java.lang.String connection)Set the source control management system URL that describes the repository and how to connect to the repository.voidsetDeveloperConnection(java.lang.String developerConnection)Set just likeconnection, but for developers, i.e.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetTag(java.lang.String tag)Set the tag of current code.voidsetUrl(java.lang.String url)Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
-
-
-
Method Detail
-
clone
public Scm clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Scm
-
getConnection
public java.lang.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.
Default value is: parent value [+ path adjustment] + (artifactId orproject.directoryproperty).- Returns:
- String
-
getDeveloperConnection
public java.lang.String getDeveloperConnection()
Get just likeconnection, but for developers, i.e. this scm connection will not be read only.
Default value is: parent value [+ path adjustment] + (artifactId orproject.directoryproperty).- Returns:
- String
-
getLocation
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key-- Returns:
- InputLocation
-
getTag
public java.lang.String getTag()
Get the tag of current code. By default, it's set to HEAD during development.- Returns:
- String
-
getUrl
public java.lang.String getUrl()
Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
Default value is: parent value [+ path adjustment] + (artifactId orproject.directoryproperty).- Returns:
- String
-
setConnection
public void setConnection(java.lang.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.
Default value is: parent value [+ path adjustment] + (artifactId orproject.directoryproperty).- Parameters:
connection-
-
setDeveloperConnection
public void setDeveloperConnection(java.lang.String developerConnection)
Set just likeconnection, but for developers, i.e. this scm connection will not be read only.
Default value is: parent value [+ path adjustment] + (artifactId orproject.directoryproperty).- Parameters:
developerConnection-
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key-location-
-
setTag
public void setTag(java.lang.String tag)
Set the tag of current code. By default, it's set to HEAD during development.- Parameters:
tag-
-
setUrl
public void setUrl(java.lang.String url)
Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
Default value is: parent value [+ path adjustment] + (artifactId orproject.directoryproperty).- Parameters:
url-
-
-