org.apache.zookeeper.version.util
Class VerGen

java.lang.Object
  extended by org.apache.zookeeper.version.util.VerGen

public class VerGen
extends Object


Nested Class Summary
static class VerGen.Version
           
 
Constructor Summary
VerGen()
           
 
Method Summary
static void generateFile(File outputDir, VerGen.Version version, int rev, String buildDate)
           
static void main(String[] args)
          Emits a org.apache.zookeeper.version.Info interface file with version and revision information constants set to the values passed in as command line parameters.
static VerGen.Version parseVersionString(String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerGen

public VerGen()
Method Detail

generateFile

public static void generateFile(File outputDir,
                                VerGen.Version version,
                                int rev,
                                String buildDate)

parseVersionString

public static VerGen.Version parseVersionString(String input)

main

public static void main(String[] args)
Emits a org.apache.zookeeper.version.Info interface file with version and revision information constants set to the values passed in as command line parameters. The file is created in the current directory.
Usage: java org.apache.zookeeper.version.util.VerGen maj.min.micro[-qualifier] rev buildDate

Parameters:
args -
  • maj - major version number
  • min - minor version number
  • micro - minor minor version number
  • qualifier - optional qualifier (dash followed by qualifier text)
  • rev - current SVN revision number
  • buildDate - date the build


Copyright © 2011 The Apache Software Foundation