com.threerings.getdown.data
Class SysProps

java.lang.Object
  extended by com.threerings.getdown.data.SysProps

public class SysProps
extends Object

This class encapsulates all system properties that are read and processed by Getdown. Don't stick a call to System.getProperty randomly into the code, put it in here and give it an accessor so that it's easy to see all of the secret system property arguments that Getdown makes use of.


Constructor Summary
SysProps()
           
 
Method Summary
static String appbaseDomain()
          Overrides the domain on appbase.
static String appDir()
          Configures the appdir (in lieu of passing it in argv).
static String appId()
          Configures the appid (in lieu of passing it in argv).
static boolean direct()
          If true, Getdown will run the application in the same VM in which Getdown is running.
static boolean launchInSilent()
          If true, Getdown installs the app without ever bringing up a UI and then launches it.
static boolean noLogRedir()
          If true, disables redirection of logging into launcher.log.
static boolean noUnpack()
          If true, Getdown will not unpack uresource jars.
static boolean silent()
          If true, Getdown installs the app without ever bringing up a UI, except in the event of an error.
static int startDelay()
          Specifies the a delay (in minutes) to wait before starting the update and install process.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SysProps

public SysProps()
Method Detail

appDir

public static String appDir()
Configures the appdir (in lieu of passing it in argv). Usage: -Dappdir=foo.


appId

public static String appId()
Configures the appid (in lieu of passing it in argv). Usage: -Dappid=foo.


noLogRedir

public static boolean noLogRedir()
If true, disables redirection of logging into launcher.log. Usage: -Dno_log_redir.


appbaseDomain

public static String appbaseDomain()
Overrides the domain on appbase. Usage: -Dappbase_domain=foo.


silent

public static boolean silent()
If true, Getdown installs the app without ever bringing up a UI, except in the event of an error. NOTE: it does not launch the app. See launchInSilent(). Usage: -Dsilent.


launchInSilent

public static boolean launchInSilent()
If true, Getdown installs the app without ever bringing up a UI and then launches it. Usage: -Dsilent=launch.


startDelay

public static int startDelay()
Specifies the a delay (in minutes) to wait before starting the update and install process. Usage: -Ddelay=N.


noUnpack

public static boolean noUnpack()
If true, Getdown will not unpack uresource jars. Usage: -Dno_unpack.


direct

public static boolean direct()
If true, Getdown will run the application in the same VM in which Getdown is running. If false (the default), Getdown will fork a new VM. Note that reusing the same VM prevents Getdown from configuring some launch-time-only VM parameters (like -mxN etc.). Usage: -Ddirect.



Copyright © 2013. All Rights Reserved.