Package org.apache.maven.model
Class Scm
- java.lang.Object
-
- 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
Constructors Constructor Description Scm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scm
clone()
Method clone.String
getChildScmConnectionInheritAppendPath()
Get when children inherit from scm connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.String
getChildScmDeveloperConnectionInheritAppendPath()
Get when children inherit from scm developer connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.String
getChildScmUrlInheritAppendPath()
Get when children inherit from scm url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.String
getConnection()
Get the source control management system URL that describes the repository and how to connect to the repository.String
getDeveloperConnection()
Get just likeconnection
, but for developers, i.e.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.boolean
isChildScmConnectionInheritAppendPath()
boolean
isChildScmDeveloperConnectionInheritAppendPath()
boolean
isChildScmUrlInheritAppendPath()
void
setChildScmConnectionInheritAppendPath(boolean childScmConnectionInheritAppendPath)
void
setChildScmConnectionInheritAppendPath(String childScmConnectionInheritAppendPath)
Set when children inherit from scm connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.void
setChildScmDeveloperConnectionInheritAppendPath(boolean childScmDeveloperConnectionInheritAppendPath)
void
setChildScmDeveloperConnectionInheritAppendPath(String childScmDeveloperConnectionInheritAppendPath)
Set when children inherit from scm developer connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.void
setChildScmUrlInheritAppendPath(boolean childScmUrlInheritAppendPath)
void
setChildScmUrlInheritAppendPath(String childScmUrlInheritAppendPath)
Set when children inherit from scm url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.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 likeconnection
, but for developers, i.e.void
setLocation(Object key, InputLocation location)
Sets the location of the specified field.void
setOtherLocation(Object key, InputLocation location)
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.String
toString()
-
-
-
Method Detail
-
getChildScmConnectionInheritAppendPath
public String getChildScmConnectionInheritAppendPath()
Get when children inherit from scm connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Returns:
- String
-
getChildScmDeveloperConnectionInheritAppendPath
public String getChildScmDeveloperConnectionInheritAppendPath()
Get when children inherit from scm developer connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Returns:
- String
-
getChildScmUrlInheritAppendPath
public String getChildScmUrlInheritAppendPath()
Get when children inherit from scm url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Returns:
- String
-
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.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm'schild.scm.connection.inherit.append.path="false"
- Returns:
- String
-
getDeveloperConnection
public 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 or project.directory property), or just parent value if scm'schild.scm.developerConnection.inherit.append.path="false"
- 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 interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
setLocation
public void setLocation(Object key, InputLocation location)
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
public void setOtherLocation(Object key, InputLocation location)
- Parameters:
key
- a key object.location
- a location object.
-
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.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm'schild.scm.url.inherit.append.path="false"
- Returns:
- String
-
setChildScmConnectionInheritAppendPath
public void setChildScmConnectionInheritAppendPath(String childScmConnectionInheritAppendPath)
Set when children inherit from scm connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Parameters:
childScmConnectionInheritAppendPath
- a childScmConnectionInheritAppendPath object.
-
setChildScmDeveloperConnectionInheritAppendPath
public void setChildScmDeveloperConnectionInheritAppendPath(String childScmDeveloperConnectionInheritAppendPath)
Set when children inherit from scm developer connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Parameters:
childScmDeveloperConnectionInheritAppendPath
- a childScmDeveloperConnectionInheritAppendPath object.
-
setChildScmUrlInheritAppendPath
public void setChildScmUrlInheritAppendPath(String childScmUrlInheritAppendPath)
Set when children inherit from scm url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Parameters:
childScmUrlInheritAppendPath
- a childScmUrlInheritAppendPath object.
-
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.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm'schild.scm.connection.inherit.append.path="false"
- Parameters:
connection
- a connection object.
-
setDeveloperConnection
public void setDeveloperConnection(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 or project.directory property), or just parent value if scm'schild.scm.developerConnection.inherit.append.path="false"
- Parameters:
developerConnection
- a developerConnection object.
-
setTag
public void setTag(String tag)
Set the tag of current code. By default, it's set to HEAD during development.- Parameters:
tag
- a tag object.
-
setUrl
public void setUrl(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 or project.directory property), or just parent value if scm'schild.scm.url.inherit.append.path="false"
- Parameters:
url
- a url object.
-
isChildScmConnectionInheritAppendPath
public boolean isChildScmConnectionInheritAppendPath()
-
setChildScmConnectionInheritAppendPath
public void setChildScmConnectionInheritAppendPath(boolean childScmConnectionInheritAppendPath)
-
isChildScmDeveloperConnectionInheritAppendPath
public boolean isChildScmDeveloperConnectionInheritAppendPath()
-
setChildScmDeveloperConnectionInheritAppendPath
public void setChildScmDeveloperConnectionInheritAppendPath(boolean childScmDeveloperConnectionInheritAppendPath)
-
isChildScmUrlInheritAppendPath
public boolean isChildScmUrlInheritAppendPath()
-
setChildScmUrlInheritAppendPath
public void setChildScmUrlInheritAppendPath(boolean childScmUrlInheritAppendPath)
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-