com.cafesoft.core.util
Class PrintJavaSystemProperty
java.lang.Object
com.cafesoft.core.util.PrintJavaSystemProperty
public class PrintJavaSystemProperty
- extends Object
PrintJavaSystemProperty takes the name of a Java System
property on the command line and prints its value to System.out.
This is useful for installation scripts or other programs that may need
to deterine the version or vendor associated with a Java virtual machine.
Usage:java -cp ./libs/cscore.jar com.cafesoft.core.PrintJavaSystemProperty java.version
The following conditions apply to command line arguments:
- if no Java property name, then an error message starting with the
string ERROR is printed to stdout and exit status 1 is set.
- if no Java System property with the specified name, then an error
message starting with the string ERROR is printed to stdout and exit
status 1 is set.
- if more than one Java system property name is provided, only the value
of the first property is printed.
On success, exit status 0 is set.
- Since:
- 8/2/2007
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintJavaSystemProperty
public PrintJavaSystemProperty()
main
public static void main(String[] arg)
Generated on 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.