brooklyncentral/brooklyn — pull request #353 by aledsage (2012-10-15 12:40:21+00:00)
Title: Reads default install/run dir from brooklyn config

Rather than hard-coding in /tmp, allows default dirs to be set via brooklyn config (i.e. by system properties, etc)

For merging into 0.4 branch, and then to be cherry-picked into master.

(I'm not particularly happy with reading the value from the config on every call to getInstallDir. But that is the simplest point to get the managementContext.getConfig() reliably. And this config should not be changed on-the-fly so the install/run dirs should be stable.

Tested manually with system properties and with brooklyn.properties.