Class ASenvPropertyReader
- java.lang.Object
-
- com.sun.enterprise.universal.glassfish.ASenvPropertyReader
-
public class ASenvPropertyReader extends Object
Class ASenvPropertyReader This class converts the variables stored in asenv.conf (UNIX) or asenv.bat (WINDOWS) into their equivalent system properties.This class guarantees that no Exception will get thrown back. You may however, have a bad javaRoot set even though we tried everything to find one
-
-
Constructor Summary
Constructors Constructor Description ASenvPropertyReader()
Read and process the information in asenv There are no arguments because the installation directory is calculated relative to the jar file you are calling from.ASenvPropertyReader(File installDir)
Read and process the information in asenv.[bat|conf] This constructor should normally not be called.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getProps()
Returns the properties that were processed.String
toString()
Returns a string representation of the properties in the Map.
-
-
-
Constructor Detail
-
ASenvPropertyReader
public ASenvPropertyReader()
Read and process the information in asenv There are no arguments because the installation directory is calculated relative to the jar file you are calling from. Unlike V2 this class will not set any System Properties. Instead it will give you a Mapcontaining the properties. To use the class, create an instance and then call getProps().
-
ASenvPropertyReader
public ASenvPropertyReader(File installDir)
Read and process the information in asenv.[bat|conf] This constructor should normally not be called. It is designed for unit test classes that are not running from an official installation.- Parameters:
installDir
- The Glassfish installation directory
-
-