Ejemplo n.º 1
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);
  }
  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);
  }