예제 #1
0
  public boolean shouldIncludeScenarioLibraries() {
    // Should consider all of the decorated content to resolve those variables.
    String testSystem = sourcePage.getVariable(WikiPageIdentity.TEST_SYSTEM);
    boolean isSlim =
        "slim".equalsIgnoreCase(testSystem) || "slimCoverage".equalsIgnoreCase(testSystem);
    String includeScenarioLibraries = sourcePage.getVariable("INCLUDE_SCENARIO_LIBRARIES");
    boolean includeScenarios = "true".equalsIgnoreCase(includeScenarioLibraries);
    boolean notIncludeScenarios = "false".equalsIgnoreCase(includeScenarioLibraries);

    return includeScenarios || (!notIncludeScenarios && isSlim);
  }
예제 #2
0
 protected String getPathSeparator() {
   String separator = sourcePage.getVariable(PageData.PATH_SEPARATOR);
   if (separator == null) separator = File.pathSeparator;
   return separator;
 }
예제 #3
0
 @Override
 public String getVariable(String variable) {
   return sourcePage.getVariable(variable);
 }
예제 #4
0
 private String getConfiguredRssLinkPrefixFrom(WikiPage contextPage) throws Exception {
   if (contextPage == null) {
     return null;
   }
   return contextPage.getVariable("RSS_PREFIX");
 }