java.lang.Object
com.aoapps.hodgepodge.version.PropertiesVersions
Loads version numbers from a properties file.
The properties file should have a three-component value for each product,
along with a single build.number property for the last component of the
version number.
- Author:
- AO Industries, Inc.
-
Constructor Summary
ConstructorDescriptionLoads properties from the provided inputstream.PropertiesVersions
(Class<?> clazz, String resource) Loads properties from a module or classpath resource.PropertiesVersions
(Properties properties) Uses the provided properties directly, no defensive copy is made. -
Method Summary
Modifier and TypeMethodDescriptionint
getBuild()
Gets the build number that is applied to all products.getVersion
(String product) Gets the version number for the provided product.
-
Constructor Details
-
PropertiesVersions
Loads properties from a module or classpath resource.- Throws:
IOException
- See Also:
-
PropertiesVersions
Loads properties from the provided inputstream.- Throws:
IOException
-
PropertiesVersions
Uses the provided properties directly, no defensive copy is made.
-
-
Method Details
-
getVersion
Gets the version number for the provided product.- Throws:
IllegalArgumentException
-
getBuild
Gets the build number that is applied to all products.- Throws:
IllegalArgumentException
-