Author Message
DaveSolarz
Joined: Nov 15, 2013
Messages: 18
Offline
Can someone tell me where does the dd.apphome get set?

It's used in the log4j properties file.

log4j.appender.RHC_OK_EGID.File=${dd.apphome}/data/log/report.log

Looking to setup another variable for server name.
NeilGoldsmith
Joined: Nov 6, 2013
Messages: 902
Offline
It's just a log4j property setting

Programmatically, you could set it like the following:

Properties log4jProps = new Properties();
fis = new FileInputStream("somepath");
log4jProps.load(fis);
log4jProps.setProperty("dd.apphome", "someotherpath");
PropertyConfigurator.configure(log4jProps);

There's other ways of setting it outside of code.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
It gets set to the absolute path to the deployed project when a new session is started.
Go to:   
Mobile view