* command (which is invoked by the deploy command) to preserve the
* existing directory, even if the configuration does not indicate that
* the app is directory-deployed.
*
*/
CommandRunnerImpl commandRunner = habitat.getService(CommandRunnerImpl.class);
ParameterMap deployParam = new ParameterMap();
deployParam.set(DeploymentProperties.FORCE, Boolean.TRUE.toString());
deployParam.set(DeploymentProperties.PATH, appInfo.getApplicationDirectory().getCanonicalPath());
deployParam.set(DeploymentProperties.NAME, appInfo.getApplication().getName());
deployParam.set(DeploymentProperties.KEEP_REPOSITORY_DIRECTORY, "true");
commandRunner.getCommandInvocation("deploy", new XMLActionReporter(), kernelSubject).parameters(deployParam).execute();
appInfo.recordLoad();
}