ch.oscg.jreleaseinfo
Class BuildNumberHandler

java.lang.Object
  extended bych.oscg.jreleaseinfo.BuildNumberHandler
All Implemented Interfaces:
BuildNumberHandlerIF

public class BuildNumberHandler
extends java.lang.Object
implements BuildNumberHandlerIF

BuildNumberHandler getting the number from a file.

Version:
$Revision: 1.3 $ ($Date: 2005/08/06 14:12:36 $ / $Author: tcotting $)
Author:
Thomas Cotting, Tangarena Engineering AG, Luzern

Field Summary
static java.lang.String PROPERTY_BUILDNUM_LAST
          Property Name in buildnum file.
 
Fields inherited from interface ch.oscg.jreleaseinfo.BuildNumberHandlerIF
PROPNAME_BUILDNUM
 
Constructor Summary
BuildNumberHandler()
           
 
Method Summary
 JReleaseInfoProperty getUpdatedBuildNumberProperty(int buildNumIncrement)
          Get the JReleaseInfoProperty with the updated buildNumber.
 void setBuildNumFile(java.lang.String fileName)
          Set method for the fileName containing the buildnumber.
protected  java.lang.String updateBuildNumber(int buildNumIncrement)
          Main method to keep track of the build number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_BUILDNUM_LAST

public static final java.lang.String PROPERTY_BUILDNUM_LAST
Property Name in buildnum file.

See Also:
Constant Field Values
Constructor Detail

BuildNumberHandler

public BuildNumberHandler()
Method Detail

updateBuildNumber

protected java.lang.String updateBuildNumber(int buildNumIncrement)
                                      throws java.lang.IllegalArgumentException,
                                             java.io.IOException
Main method to keep track of the build number.

Returns:
update success true/false
Throws:
java.io.IOException - on file errors
java.lang.IllegalArgumentException - on wrong parameters

getUpdatedBuildNumberProperty

public JReleaseInfoProperty getUpdatedBuildNumberProperty(int buildNumIncrement)
                                                   throws java.lang.IllegalArgumentException,
                                                          java.io.IOException
Get the JReleaseInfoProperty with the updated buildNumber.

Specified by:
getUpdatedBuildNumberProperty in interface BuildNumberHandlerIF
Parameters:
buildNumIncrement - int
Returns:
JReleaseInfoProperty
Throws:
java.lang.IllegalArgumentException
java.io.IOException

setBuildNumFile

public void setBuildNumFile(java.lang.String fileName)
Set method for the fileName containing the buildnumber.

Parameters:
fileName - for build number


Copyright © 2005 Open Source Competence Group (OSCG). All Rights Reserved.