/** * @return the path to the sakai home directory on the server */ private String getSakaiHomeDir() { String sakaiHome = ""; // current dir (should be tomcat home) - this failsafe should not be used if (serverConfigurationService != null) { // this keeps the tests from dying String sh = serverConfigurationService.getSakaiHomePath(); if (sh != null) { sakaiHome = sh; } } sakaiHome = new File(sakaiHome).getAbsolutePath(); // standardize return sakaiHome; }
public static java.lang.String getSakaiHomePath() { org.sakaiproject.component.api.ServerConfigurationService service = getInstance(); if (service == null) return null; return service.getSakaiHomePath(); }
File file = new File(serverConfigurationService.getSakaiHomePath(), qrtzPropFileSakai); if (file.exists() && file.isFile()) { try
File file = new File(serverConfigurationService.getSakaiHomePath(), qrtzPropFileSakai); if (file.exists() && file.isFile()) { try
final String sakaiHomePath = serverConfigurationService.getSakaiHomePath();
final String sakaiHomePath = serverConfigurationService.getSakaiHomePath();
public ImportDataSource parseFromFile(ResetOnCloseInputStream archiveFileData) { ImportFileParser parser = findParser(archiveFileData); if (parser != null) { return parser.newParser().parse(archiveFileData, configService.getSakaiHomePath() + "archive"); } // invalid or unsupported archive file // TODO this should probably throw an exception return null; }
public ImportDataSource parseFromFile(ResetOnCloseInputStream archiveFileData) { ImportFileParser parser = findParser(archiveFileData); if (parser != null) { return parser.newParser().parse(archiveFileData, configService.getSakaiHomePath() + "archive"); } // invalid or unsupported archive file // TODO this should probably throw an exception return null; }
if(channelId != null && !channelId.equals("")) { File jgroupsConfig = new File(serverConfigurationService.getSakaiHomePath() + File.separator + "jgroups-config.xml"); if(jgroupsConfig.exists()) { if(logger.isDebugEnabled()) {
String log4jConfigFilePath = serverConfigurationService().getSakaiHomePath() + "log4j.properties"; if (StringUtils.isNotEmpty(log4jConfigFilePath)) { PropertyConfigurator.configureAndWatch(log4jConfigFilePath);