public class BuildNumber extends Cool
Modifier and Type | Field and Description |
---|---|
static String |
__BUILD_NUMBER_FILE |
static String |
__BUILD_NUMBER_MAJOR |
static String |
__BUILD_NUMBER_MINOR |
static String |
__BUILD_NUMBER_PATCH |
static String |
__BUILD_NUMBER_SEQUENCE |
static int |
ALL_ATTRIBUTES |
static int |
ATTRIBUTE_MAJOR |
static int |
ATTRIBUTE_MINOR |
static int |
ATTRIBUTE_PATCH |
static int |
ATTRIBUTE_SEQUENCE |
Constructor and Description |
---|
BuildNumber() |
Modifier and Type | Method and Description |
---|---|
static net.praqma.util.structure.Tuple<Baseline,String[]> |
createBuildNumber(String baseline,
Component component,
File view) |
static String |
getBuildNumber(Project project)
This method returns the new build number for a Baseline.
|
static Integer |
getNextBuildSequence(Project project)
Given a Project, its top level Components sequence number is retrieved,
incremented, stored and returned.
|
static String[] |
isBuildNumber(Baseline baseline) |
static int |
isValidUCMBuildNumber(Project project)
Verify that the project has valid UCM build number attributes
|
static int |
stampFromComponent(Component component,
File dir,
String major,
String minor,
String patch,
String sequence,
boolean ignoreErrors) |
static int |
stampIntoCode(Baseline baseline) |
static int |
stampIntoCode(Baseline baseline,
File dir) |
static int |
stampIntoCode(Baseline baseline,
File dir,
boolean ignoreErrors) |
static int |
stampIntoCode(File file,
String major,
String minor,
String patch,
String sequence) |
public static final String __BUILD_NUMBER_MAJOR
public static final String __BUILD_NUMBER_MINOR
public static final String __BUILD_NUMBER_PATCH
public static final String __BUILD_NUMBER_SEQUENCE
public static final String __BUILD_NUMBER_FILE
public static final int ALL_ATTRIBUTES
public static final int ATTRIBUTE_MAJOR
public static final int ATTRIBUTE_MINOR
public static final int ATTRIBUTE_PATCH
public static final int ATTRIBUTE_SEQUENCE
public static String[] isBuildNumber(Baseline baseline) throws BuildNumberException
BuildNumberException
public static net.praqma.util.structure.Tuple<Baseline,String[]> createBuildNumber(String baseline, Component component, File view) throws BuildNumberException, UnableToInitializeEntityException, UnableToCreateEntityException, NothingNewException
public static int stampFromComponent(Component component, File dir, String major, String minor, String patch, String sequence, boolean ignoreErrors) throws HyperlinkException, UnableToInitializeEntityException, BuildNumberException, IOException
public static int stampIntoCode(Baseline baseline) throws BuildNumberException, UnableToLoadEntityException, UnableToCreateEntityException, UCMEntityNotFoundException, HyperlinkException, IOException, UnableToGetEntityException, UnableToInitializeEntityException
public static int stampIntoCode(Baseline baseline, File dir) throws BuildNumberException, HyperlinkException, UnableToInitializeEntityException, IOException
public static int stampIntoCode(Baseline baseline, File dir, boolean ignoreErrors) throws BuildNumberException, HyperlinkException, UnableToInitializeEntityException, IOException
public static int stampIntoCode(File file, String major, String minor, String patch, String sequence) throws IOException
IOException
public static Integer getNextBuildSequence(Project project) throws NoSingleTopComponentException, UnableToInitializeEntityException, UnableToListAttributesException, BuildNumberException, UnableToSetAttributeException
project
- A UCM ProjectUnableToInitializeEntityException
- Thrown when ClearCase reports errorsUnableToSetAttributeException
- Thrown when ClearCase reports errorsBuildNumberException
- Thrown when ClearCase reports errorsUnableToListAttributesException
- Thrown when ClearCase reports errorsNoSingleTopComponentException
- Thrown when ClearCase reports errorspublic static int isValidUCMBuildNumber(Project project) throws NoSingleTopComponentException, UnableToInitializeEntityException, UnableToListAttributesException
project
- The UCM project to verifyNoSingleTopComponentException
- Thrown errorUnableToInitializeEntityException
- Thrown errorUnableToListAttributesException
- Thrown errorpublic static String getBuildNumber(Project project) throws UnableToListAttributesException, BuildNumberException, NoSingleTopComponentException, UnableToInitializeEntityException, UnableToSetAttributeException
project
- The project to get the build number fromUnableToListAttributesException
- ErrorBuildNumberException
- ErrorUnableToSetAttributeException
- ErrorUnableToInitializeEntityException
- ErrorNoSingleTopComponentException
- ErrorCopyright © 2016–2018. All rights reserved.