@Experimental @Generated @ThreadSafe @Immutable public class Scm extends Object implements Serializable, InputLocationTracker
<scm> element contains informations required to the SCM
(Source Control Management) of the project.| Modifier and Type | Class and Description |
|---|---|
static class |
Scm.Builder
Builder class used to create Scm instances.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getChildScmConnectionInheritAppendPath()
When children inherit from scm connection, append path or not? Note: While the type
of this field is
String for technical reasons, the semantic type is actually
Boolean
Default value is: true
Since: Maven 3.6.1 |
String |
getChildScmDeveloperConnectionInheritAppendPath()
When children inherit from scm developer connection, append path or not? Note: While the type
of this field is
String for technical reasons, the semantic type is actually
Boolean
Default value is: true
Since: Maven 3.6.1 |
String |
getChildScmUrlInheritAppendPath()
When children inherit from scm url, append path or not? Note: While the type
of this field is
String for technical reasons, the semantic type is actually
Boolean
Default value is: true
Since: Maven 3.6.1 |
String |
getConnection()
The source control management system URL
that describes the repository and how to connect to the
repository.
|
String |
getDeveloperConnection()
Just like
connection, but for developers, i.e. |
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getTag()
The tag of current code.
|
String |
getUrl()
The URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
|
boolean |
isChildScmConnectionInheritAppendPath() |
boolean |
isChildScmDeveloperConnectionInheritAppendPath() |
boolean |
isChildScmUrlInheritAppendPath() |
static Scm.Builder |
newBuilder()
Creates a new
Scm builder instance. |
static Scm.Builder |
newBuilder(boolean withDefaults)
Creates a new
Scm builder instance using default values or not. |
static Scm.Builder |
newBuilder(Scm from)
Creates a new
Scm builder instance using the specified object as a basis. |
static Scm.Builder |
newBuilder(Scm from,
boolean forceCopy)
Creates a new
Scm builder instance using the specified object as a basis. |
static Scm |
newInstance()
Creates a new
Scm instance. |
static Scm |
newInstance(boolean withDefaults)
Creates a new
Scm instance using default values or not. |
Scm.Builder |
with()
Creates a new builder with this object as the basis.
|
Scm |
withChildScmConnectionInheritAppendPath(String childScmConnectionInheritAppendPath)
Creates a new
Scm instance using the specified childScmConnectionInheritAppendPath. |
Scm |
withChildScmDeveloperConnectionInheritAppendPath(String childScmDeveloperConnectionInheritAppendPath)
Creates a new
Scm instance using the specified childScmDeveloperConnectionInheritAppendPath. |
Scm |
withChildScmUrlInheritAppendPath(String childScmUrlInheritAppendPath)
Creates a new
Scm instance using the specified childScmUrlInheritAppendPath. |
Scm |
withConnection(String connection)
Creates a new
Scm instance using the specified connection. |
Scm |
withDeveloperConnection(String developerConnection)
Creates a new
Scm instance using the specified developerConnection. |
Scm |
withTag(String tag)
Creates a new
Scm instance using the specified tag. |
Scm |
withUrl(String url)
Creates a new
Scm instance using the specified url. |
public String getConnection()
child.scm.connection.inherit.append.path="false"Stringpublic String getDeveloperConnection()
connection, but for developers, i.e. this scm connection
will not be read only.
child.scm.developerConnection.inherit.append.path="false"Stringpublic String getTag()
Stringpublic String getUrl()
child.scm.url.inherit.append.path="false"Stringpublic String getChildScmConnectionInheritAppendPath()
String for technical reasons, the semantic type is actually
Boolean
true
Stringpublic String getChildScmDeveloperConnectionInheritAppendPath()
String for technical reasons, the semantic type is actually
Boolean
true
Stringpublic String getChildScmUrlInheritAppendPath()
String for technical reasons, the semantic type is actually
Boolean
true
Stringpublic InputLocation getLocation(Object key)
getLocation in interface InputLocationTracker@Nonnull public Scm.Builder with()
Builder@Nonnull public Scm withConnection(String connection)
Scm instance using the specified connection.connection - the new String to useScm with the specified connection@Nonnull public Scm withDeveloperConnection(String developerConnection)
Scm instance using the specified developerConnection.developerConnection - the new String to useScm with the specified developerConnection@Nonnull public Scm withTag(String tag)
Scm instance using the specified tag.tag - the new String to useScm with the specified tag@Nonnull public Scm withUrl(String url)
Scm instance using the specified url.url - the new String to useScm with the specified url@Nonnull public Scm withChildScmConnectionInheritAppendPath(String childScmConnectionInheritAppendPath)
Scm instance using the specified childScmConnectionInheritAppendPath.childScmConnectionInheritAppendPath - the new String to useScm with the specified childScmConnectionInheritAppendPath@Nonnull public Scm withChildScmDeveloperConnectionInheritAppendPath(String childScmDeveloperConnectionInheritAppendPath)
Scm instance using the specified childScmDeveloperConnectionInheritAppendPath.childScmDeveloperConnectionInheritAppendPath - the new String to useScm with the specified childScmDeveloperConnectionInheritAppendPath@Nonnull public Scm withChildScmUrlInheritAppendPath(String childScmUrlInheritAppendPath)
Scm instance using the specified childScmUrlInheritAppendPath.childScmUrlInheritAppendPath - the new String to useScm with the specified childScmUrlInheritAppendPath@Nonnull public static Scm newInstance()
Scm instance.
Equivalent to newInstance( true ).ScmnewInstance(boolean)@Nonnull public static Scm newInstance(boolean withDefaults)
Scm instance using default values or not.
Equivalent to newBuilder( withDefaults ).build().withDefaults - the boolean indicating whether default values should be usedScm@Nonnull public static Scm.Builder newBuilder()
Scm builder instance.
Equivalent to newBuilder( true ).BuildernewBuilder(boolean)@Nonnull public static Scm.Builder newBuilder(boolean withDefaults)
Scm builder instance using default values or not.withDefaults - the boolean indicating whether default values should be usedBuilder@Nonnull public static Scm.Builder newBuilder(Scm from)
Scm builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false ).from - the Scm instance to use as a basisBuilder@Nonnull public static Scm.Builder newBuilder(Scm from, boolean forceCopy)
Scm builder instance using the specified object as a basis.from - the Scm instance to use as a basisforceCopy - the boolean indicating if a copy should be forcedBuilderpublic boolean isChildScmConnectionInheritAppendPath()
public boolean isChildScmDeveloperConnectionInheritAppendPath()
public boolean isChildScmUrlInheritAppendPath()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.