public File getHome() {
    final CompositeJiraHomePathLocator locator =
        new CompositeJiraHomePathLocator(
            new MultiTenantJiraHomeLocator(),
            new SystemPropertyJiraHomePathLocator(),
            new ApplicationPropertiesJiraHomePathLocator());
    final String jiraHome = locator.getJiraHome();

    if (jiraHome == null) {
      throw new IllegalStateException("No valid JIRA Home directory.");
    }
    return new File(jiraHome);
  }
예제 #2
0
  @Nonnull
  @Override
  public File getLocalHome() {
    final String jiraHome = locator.getJiraHome();

    if (jiraHome == null) {
      throw new IllegalStateException("No valid JIRA Home directory.");
    }
    return new File(jiraHome);
  }