public class VersionUtils
- extends Object
Utility methods related to managing framework version numbers.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static String readVersionNumber(String resourcePath)
- Reads a version number from a properties file on the classpath. These files are generally created by Gradle. For
example, tapestry-core's properties file is
The Gradle generated properties files include the version and possibly others properties.
The resource is located using the Thread's context class loader.
resourcePath - the complete path to the resource, including a leading slash.
- the version number read from the properties file, or "UNKNOWN" if the version number is not present or
the file can not be opened
Copyright © 2003-2012 The Apache Software Foundation.