Termite

termite
Class Build

java.lang.Object
  |
  +--termite.Build

public class Build
extends java.lang.Object

The build class contains some information about the build like

The build information is stored in a property file which can be inserted as poperty file in Ant or other build tools. The name of the property file can be given as parameter for the constructor or using the loadProperties() method.

The following properties are used:

For an example see the file "buildnr.properties" in the build directory of Termite:
 #Build Properties
 #Thu Feb 07 20:08:01 CET 2002
 version=0.01
 build.nr=14
 

Version:
$Revision: 1.1.1.1 $
Author:
$Author: oboehm $
See Also:
main(java.lang.String[])

Constructor Summary
Build()
          Constructor
Build(java.io.File propertyFile)
          Constructor
Build(java.lang.String propertyFile)
          Constructor
 
Method Summary
 int getNumber()
           
 void increaseNumber()
          increaseNumber increase the build number and stores the result back to the build property file
 void loadProperties(java.io.File file)
          Method loadProperties
 void loadProperties(java.lang.String propertyFile)
          loadProperties reads the build properties from the given files and stores it for internal use.
static void main(java.lang.String[] args)
          The following arguments are possible: increaseNumber property-file:
this will increase the build number (build.nr) in the given property file (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Build

public Build()
Constructor

Build

public Build(java.lang.String propertyFile)
      throws java.io.FileNotFoundException,
             java.io.IOException
Constructor
Parameters:
propertyFile - the name of the property file

Build

public Build(java.io.File propertyFile)
      throws java.io.FileNotFoundException,
             java.io.IOException
Constructor
Parameters:
propertyFile - the name of the property file
Method Detail

loadProperties

public void loadProperties(java.lang.String propertyFile)
                    throws java.io.FileNotFoundException,
                           java.io.IOException
loadProperties reads the build properties from the given files and stores it for internal use.
Parameters:
propertyFile - the name of the property file
Throws:
java.io.FileNotFoundException -  
java.io.IOException -  

loadProperties

public void loadProperties(java.io.File file)
                    throws java.io.FileNotFoundException,
                           java.io.IOException
Method loadProperties
Parameters:
file - the property file containing build properties
Throws:
java.io.FileNotFoundException -  
java.io.IOException -  

getNumber

public int getNumber()
Returns:
the build number

increaseNumber

public void increaseNumber()
                    throws java.io.FileNotFoundException,
                           java.io.IOException
increaseNumber increase the build number and stores the result back to the build property file

main

public static void main(java.lang.String[] args)
                 throws java.io.FileNotFoundException,
                        java.io.IOException
The following arguments are possible:

Termite

Copyright © February 9 2002 Oli B.