Ejemplo n.º 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);
  }
Ejemplo n.º 2
0
 protected String getPathSeparator() {
   String separator = sourcePage.getVariable(PageData.PATH_SEPARATOR);
   if (separator == null) separator = File.pathSeparator;
   return separator;
 }
Ejemplo n.º 3
0
 @Override
 public String getVariable(String variable) {
   return sourcePage.getVariable(variable);
 }
Ejemplo n.º 4
0
 private String getConfiguredRssLinkPrefixFrom(WikiPage contextPage) throws Exception {
   if (contextPage == null) {
     return null;
   }
   return contextPage.getVariable("RSS_PREFIX");
 }