public class Member extends Object
Constructor and Description |
---|
Member(com.mks.api.response.WorkItem wi,
String configPath,
String projectRoot,
String workspaceDir)
This class represents an MKS Integrity Source File
It needs the Member Name (relative path to pj), Full Member Path, Project Configuration Path, Revision,
Project's Root Path, and the current Workspace directory (to compute the working file path) for its
instantiation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkout(APISession api)
Performs a checkout of this MKS Integrity Source File to a working file location on the build server represented
by targetFile
|
boolean |
equals(Object o)
Uses the name of file for equality check
|
String |
getDescription()
Returns any check-in comments associated with this revision
|
String |
getMemberName()
Returns the full server-side member path for this member
|
String |
getName()
Returns only the file name portion for this full server-side member path
|
String |
getRevision()
Returns a string representation of this member's revision
|
String |
getTargetFilePath()
Returns a string representation of this file's full path name, where it will checked out to disk for the build.
|
Date |
getTimestamp()
Returns the date/time associated with this member revision
|
int |
hashCode() |
void |
setLineTerminator(String lineTerminator)
Optionally, one may set a line terminator, if the default is not desired.
|
void |
setOverwriteExisting(String overwriteExisting)
Optionally, one may choose not to overwrite existing files, this may speed up the synchronization process.
|
void |
setRestoreTimestamp(boolean restoreTime)
Optionally, one might want to restore the timestamp, if the build is smart not to recompile files that were not
touched.
|
public Member(com.mks.api.response.WorkItem wi, String configPath, String projectRoot, String workspaceDir)
wi
- A MKS API Response Work Item representing metadata related to a Integrity MemberconfigPath
- Configuration Path for this file's project/subprojectprojectRoot
- Full path to the root location for this file's parent projectworkspaceDir
- Full path to the workspace root directorypublic String getTargetFilePath()
public String getRevision()
public Date getTimestamp()
public String getDescription()
public String getMemberName()
public String getName()
public void setLineTerminator(String lineTerminator)
lineTerminator
- public void setOverwriteExisting(String overwriteExisting)
overwriteExisting
- public void setRestoreTimestamp(boolean restoreTime)
restoreTimestamp
- public boolean checkout(APISession api) throws com.mks.api.response.APIException
api
- MKS API Sessioncom.mks.api.response.APIException
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.