Class VerGen
- java.lang.Object
-
- org.apache.zookeeper.version.util.VerGen
-
public class VerGen extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VerGen.Version
-
Constructor Summary
Constructors Constructor Description VerGen()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
generateFile(java.io.File outputDir, VerGen.Version version, java.lang.String rev, java.lang.String buildDate)
static void
main(java.lang.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(java.lang.String input)
-
-
-
Method Detail
-
generateFile
public static void generateFile(java.io.File outputDir, VerGen.Version version, java.lang.String rev, java.lang.String buildDate) throws java.io.IOException
- Throws:
java.io.IOException
-
parseVersionString
public static VerGen.Version parseVersionString(java.lang.String input)
-
main
public static void main(java.lang.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 Git revision number
- buildDate - date the build
-
-