| | |
| | | public class SetupUtils |
| | | { |
| | | /** |
| | | * Java property used to known if we are using web start or not. |
| | | */ |
| | | public static final String IS_WEBSTART = "org.opends.quicksetup.iswebstart"; |
| | | |
| | | /** |
| | | * Specific environment variable used by the scripts to find java. |
| | | */ |
| | | public static final String OPENDJ_JAVA_HOME = "OPENDJ_JAVA_HOME"; |
| | |
| | | } |
| | | |
| | | /** |
| | | * Indicates whether we are in a web start installation or not. |
| | | * |
| | | * @return <CODE>true</CODE> if we are in a web start installation and |
| | | * <CODE>false</CODE> if not. |
| | | */ |
| | | public static boolean isWebStart() |
| | | { |
| | | return "true".equals(System.getProperty(IS_WEBSTART)); |
| | | } |
| | | |
| | | /** |
| | | * Returns the String that can be used to launch an script using Runtime.exec. |
| | | * This method is required because in Windows the script that contain a "=" |
| | | * in their path must be quoted. |