/**
* Prepare's the system properties for the actual mode, which is the runner mode in our case.
*
* @param \AppserverIo\Properties\PropertiesInterface $properties The properties to prepare
* @param string $webappPath The path of the web application to prepare the properties with
*
* @return void
*/
protected function prepareSystemProperties(PropertiesInterface $properties, $webappPath)
{
// let the parent method also prepare the properties
parent::prepareSystemProperties($properties, $webappPath);
// replace the host's application base directory with the parent directory
$properties->add(SystemPropertyKeys::HOST_APP_BASE, dirname($webappPath));
}