public String generateDocumentation(String containerId) throws Exception {
  StringBuilder output=new StringBuilder();
  output.append("{note}This page has been automatically generated by Cargo's build. " + "Do not edit it directly as it'll be overwritten next time it's generated again." + "{note}");
  output.append(LINE_SEPARATOR);
  output.append(LINE_SEPARATOR);
  if (containerId.equals("geronimo1x")) {
    output.append("{note}The Geronimo 1.x CARGO container REQUIRES Geronimo 1.1.1.{note}");
    output.append(LINE_SEPARATOR);
    output.append(LINE_SEPARATOR);
  }
 else   if (containerId.equals("glassfish4x")) {
    output.append("{info}The GlassFish 4.x container also works with ");
    output.append("[Payara|http://www.payara.fish/].{info}");
    output.append(LINE_SEPARATOR);
    output.append(LINE_SEPARATOR);
  }
 else   if (containerId.startsWith("jboss6") || containerId.startsWith("jboss7") || containerId.startsWith("wildfly10")) {
    output.append("{note}With the opening of the JBoss EAP to the public and the split ");
    output.append("between JBoss and WildFly, the below naming correspondance should be ");
    output.append("used with JBoss EAP containers:");
    output.append(LINE_SEPARATOR);
    output.append("* What Cargo calls [JBoss 6.1.x] is what JBoss refers to as JBoss ");
    output.append("Application Server version 6.1; i.e. the version released in August ");
    output.append("2011");
    output.append(LINE_SEPARATOR);
    output.append("* What Cargo calls [JBoss 7.2.x] is what JBoss refers to as JBoss ");
    output.append("Enterprise Application Platform (EAP) version 6.1; i.e. the build ");
    output.append("from JBoss Application Server (AS) version 7.2 released in May 2013");
    output.append(LINE_SEPARATOR);
    output.append("* What Cargo calls [JBoss 7.3.x] is what JBoss refers to as JBoss ");
    output.append("Enterprise Application Platform (EAP) version 6.2; i.e. the build ");
    output.append("from JBoss Application Server (AS) version 7.3 released in October ");
    output.append("2013");
    output.append(LINE_SEPARATOR);
    output.append("* What Cargo calls [JBoss 7.4.x] is what JBoss refers to as JBoss ");
    output.append("Enterprise Application Platform (EAP) version 6.3; i.e. the build ");
    output.append("from JBoss Application Server (AS) version 7.4 released in June ");
    output.append("2014");
    output.append(LINE_SEPARATOR);
    output.append("* What Cargo calls [JBoss 7.5.x] is what JBoss refers to as JBoss ");
    output.append("Enterprise Application Platform (EAP) version 6.4; i.e. the build ");
    output.append("from JBoss Application Server (AS) version 7.5 released in October ");
    output.append("2015");
    output.append(LINE_SEPARATOR);
    output.append("* The [WildFly 10.x] container can be used with the JBoss Enterprise ");
    output.append("Application Platform (EAP) version 7; i.e. the version released in ");
    output.append("May 2016");
    output.append("{note}");
    output.append(LINE_SEPARATOR);
    output.append(LINE_SEPARATOR);
  }
 else   if (containerId.startsWith("weblogic12")) {
    if (containerId.equals("weblogic12x")) {
      output.append("{info}The WebLogic 12.x container lacks from the many features ");
      output.append("provided by the [WebLogic 12.1.x] and [WebLogic 12.2.x] ");
      output.append("containers - We would hence recommend using one of these ");
      output.append("instead of the WebLogic 12.x container.{info}");
      output.append(LINE_SEPARATOR);
      output.append(LINE_SEPARATOR);
    }
    output.append("{note}");
    output.append("If you are using the WebLogic 12 Developer's Edition, after you have ");
    output.append("downloaded the distribution, please remember to also configure ");
    output.append("WebLogic.");
    output.append(LINE_SEPARATOR);
    output.append("You can read http://www.oracle.com/webfolder/technetwork/tutorials/");
    output.append("obe/java/wls_12c_netbeans_install/wls_12c_netbeans_install.html for ");
    output.append("details.");
    output.append("{note}");
    output.append(LINE_SEPARATOR);
    output.append(LINE_SEPARATOR);
  }
 else   if (containerId.startsWith("websphere")) {
    output.append("{note}");
    output.append("The WebSphere container does +not+ support WebSphere Application ");
    output.append("Server Community Edition, please prefer to use the \"full\" ");
    output.append("WebSphere package or WebSphere Application Server for Developers.");
    output.append("{note}");
    output.append(LINE_SEPARATOR);
    output.append(LINE_SEPARATOR);
  }
  output.append(generateContainerFeaturesText(containerId));
  output.append(LINE_SEPARATOR);
  output.append(generateConfigurationFeaturesText(containerId));
  output.append(LINE_SEPARATOR);
  output.append(generateDeployerFeaturesText(containerId));
  output.append(LINE_SEPARATOR);
  output.append(generateOtherFeaturesText(containerId));
  output.append(LINE_SEPARATOR);
  output.append(generateConfigurationPropertiesText(containerId));
  output.append(LINE_SEPARATOR);
  output.append(generateSamplesInfoText(containerId));
  output.append(LINE_SEPARATOR);
  return output.toString();
}

public String generateDocumentation ( String containerId ) throws Exception { StringBuilder output = new StringBuilder ( ) ; output . append ( "{note}This page has been automatically generated by Cargo's build. " + "Do not edit it directly as it'll be overwritten next time it's generated again." + "{note}" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( LINE_SEPARATOR ) ; if ( containerId . equals ( "geronimo1x" ) ) { output . append ( "{note}The Geronimo 1.x CARGO container REQUIRES Geronimo 1.1.1.{note}" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( LINE_SEPARATOR ) ; } else if ( containerId . equals ( "glassfish4x" ) ) { output . append ( "{info}The GlassFish 4.x container also works with " ) ; output . append ( "[Payara|http://www.payara.fish/].{info}" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( LINE_SEPARATOR ) ; } else if ( containerId . startsWith ( "jboss6" ) || containerId . startsWith ( "jboss7" ) || containerId . startsWith ( "wildfly10" ) ) { output . append ( "{note}With the opening of the JBoss EAP to the public and the split " ) ; output . append ( "between JBoss and WildFly, the below naming correspondance should be " ) ; output . append ( "used with JBoss EAP containers:" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( "* What Cargo calls [JBoss 6.1.x] is what JBoss refers to as JBoss " ) ; output . append ( "Application Server version 6.1; i.e. the version released in August " ) ; output . append ( "2011" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( "* What Cargo calls [JBoss 7.2.x] is what JBoss refers to as JBoss " ) ; output . append ( "Enterprise Application Platform (EAP) version 6.1; i.e. the build " ) ; output . append ( "from JBoss Application Server (AS) version 7.2 released in May 2013" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( "* What Cargo calls [JBoss 7.3.x] is what JBoss refers to as JBoss " ) ; output . append ( "Enterprise Application Platform (EAP) version 6.2; i.e. the build " ) ; output . append ( "from JBoss Application Server (AS) version 7.3 released in October " ) ; output . append ( "2013" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( "* What Cargo calls [JBoss 7.4.x] is what JBoss refers to as JBoss " ) ; output . append ( "Enterprise Application Platform (EAP) version 6.3; i.e. the build " ) ; output . append ( "from JBoss Application Server (AS) version 7.4 released in June " ) ; output . append ( "2014" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( "* What Cargo calls [JBoss 7.5.x] is what JBoss refers to as JBoss " ) ; output . append ( "Enterprise Application Platform (EAP) version 6.4; i.e. the build " ) ; output . append ( "from JBoss Application Server (AS) version 7.5 released in October " ) ; output . append ( "2015" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( "* The [WildFly 10.x] container can be used with the JBoss Enterprise " ) ; output . append ( "Application Platform (EAP) version 7; i.e. the version released in " ) ; output . append ( "May 2016" ) ; output . append ( "{note}" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( LINE_SEPARATOR ) ; } else if ( containerId . startsWith ( "weblogic12" ) ) { if ( containerId . equals ( "weblogic12x" ) ) { output . append ( "{info}The WebLogic 12.x container lacks from the many features " ) ; output . append ( "provided by the [WebLogic 12.1.x] and [WebLogic 12.2.x] " ) ; output . append ( "containers - We would hence recommend using one of these " ) ; output . append ( "instead of the WebLogic 12.x container.{info}" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( LINE_SEPARATOR ) ; } output . append ( "{note}" ) ; output . append ( "If you are using the WebLogic 12 Developer's Edition, after you have " ) ; output . append ( "downloaded the distribution, please remember to also configure " ) ; output . append ( "WebLogic." ) ; output . append ( LINE_SEPARATOR ) ; output . append ( "You can read http://www.oracle.com/webfolder/technetwork/tutorials/" ) ; output . append ( "obe/java/wls_12c_netbeans_install/wls_12c_netbeans_install.html for " ) ; output . append ( "details." ) ; output . append ( "{note}" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( LINE_SEPARATOR ) ; } else if ( containerId . startsWith ( "websphere" ) ) { output . append ( "{note}" ) ; output . append ( "The WebSphere container does +not+ support WebSphere Application " ) ; output . append ( "Server Community Edition, please prefer to use the \"full\" " ) ; output . append ( "WebSphere package or WebSphere Application Server for Developers." ) ; output . append ( "{note}" ) ; output . append ( LINE_SEPARATOR ) ; output . append ( LINE_SEPARATOR ) ; } output . append ( generateContainerFeaturesText ( containerId ) ) ; output . append ( LINE_SEPARATOR ) ; output . append ( generateConfigurationFeaturesText ( containerId ) ) ; output . append ( LINE_SEPARATOR ) ; output . append ( generateDeployerFeaturesText ( containerId ) ) ; output . append ( LINE_SEPARATOR ) ; output . append ( generateOtherFeaturesText ( containerId ) ) ; output . append ( LINE_SEPARATOR ) ; output . append ( generateConfigurationPropertiesText ( containerId ) ) ; output . append ( LINE_SEPARATOR ) ; output . append ( generateSamplesInfoText ( containerId ) ) ; output . append ( LINE_SEPARATOR ) ; return output . toString ( ) ; }
generate documentation for a given container .
