public class Project extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_PROJECT |
static Comparator<Member> |
FILES_ORDER |
static String |
NORMAL_PROJECT |
static String |
VARIANT_PROJECT |
Constructor and Description |
---|
Project(APISession api,
String configPath)
Creates an instance of an Integrity SCM Project
|
Modifier and Type | Method and Description |
---|---|
com.mks.api.response.Response |
checkpoint(String message,
String tag)
Performs a checkpoint on the Integrity SCM Project
|
com.mks.api.response.Response |
createDevPath(String devPath)
Creates a Development Path (project branch) for the MKS Integrity SCM Project
|
String |
getConfigurationPath()
Returns the Full Configuration Path for this Integrity SCM Project
|
Date |
getLastCheckpointDate()
Returns the date when the last checkpoint was performed on this Project
|
String |
getProjectName()
Returns the project path for this Integrity SCM Project
|
String |
getProjectRevision()
Returns the project revision for this Integrity SCM Project
|
boolean |
isBuild()
Returns true if this is a Build Project
|
boolean |
isNormal()
Returns true is this is a Normal Project
|
boolean |
isVariant()
Returns true if this is a Variant Project
|
List<Member> |
listFiles(String workspaceDir)
Parses the output from the si viewproject command to get a list of members
|
static void |
validateTag(String tagName)
Checks if the given value is a valid MKS Integrity Label.
|
public static final String NORMAL_PROJECT
public static final String VARIANT_PROJECT
public static final String BUILD_PROJECT
public static final Comparator<Member> FILES_ORDER
public Project(APISession api, String configPath) throws com.mks.api.response.APIException
api
- MKS API Session objectconfigPath
- Configuration path for the MKS Integrity SCM Projectcom.mks.api.response.APIException
public static void validateTag(String tagName) throws Exception
tagName
- The checkpoint label nameException
public String getProjectName()
public String getProjectRevision()
public boolean isNormal()
public boolean isVariant()
public boolean isBuild()
public String getConfigurationPath()
public Date getLastCheckpointDate()
public List<Member> listFiles(String workspaceDir) throws com.mks.api.response.APIException
workspaceDir
- The current workspace directory, which is required for an exportcom.mks.api.response.APIException
public com.mks.api.response.Response checkpoint(String message, String tag) throws com.mks.api.response.APIException
message
- Checkpoint descriptiontag
- Checkpoint labelcom.mks.api.response.APIException
public com.mks.api.response.Response createDevPath(String devPath) throws com.mks.api.response.APIException
devPath
- Development Path Namecom.mks.api.response.APIException
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.