net.praqma.util.io
Class BuildNumberStamper

java.lang.Object
  extended by net.praqma.util.io.BuildNumberStamper

public class BuildNumberStamper
extends Object


Constructor Summary
BuildNumberStamper(File src)
           
 
Method Summary
static void copyFile(File sourceFile, File destFile)
           
 int stampIntoCode(String flvl)
          Stamp a four level version number into a version file
 int stampIntoCode(String major, String minor, String patch, String sequence)
          Stamps a file
 int stampIntoCode(String major, String minor, String patch, String sequence, String delimiter)
          Stamps a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildNumberStamper

public BuildNumberStamper(File src)
                   throws IOException
Throws:
IOException
Method Detail

stampIntoCode

public int stampIntoCode(String flvl)
                  throws IOException
Stamp a four level version number into a version file

Parameters:
flvl - A string representing the four level version, "major.minor.patch.sequence"
Returns:
The number of occurrences
Throws:
IOException

stampIntoCode

public int stampIntoCode(String major,
                         String minor,
                         String patch,
                         String sequence)
                  throws IOException
Stamps a file

Parameters:
major -
minor -
patch -
sequence -
Returns:
0 if the files had zero occurrences or 1 if it had any
Throws:
IOException

stampIntoCode

public int stampIntoCode(String major,
                         String minor,
                         String patch,
                         String sequence,
                         String delimiter)
                  throws IOException
Stamps a file

Parameters:
major -
minor -
patch -
sequence -
delimiter -
Returns:
0 if the files had zero occurrences or 1 if it had any
Throws:
IOException

copyFile

public static void copyFile(File sourceFile,
                            File destFile)
                     throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.