James Moger
2013-01-15 93d506581010cdb6308ae3d282a8bc513966d70d
src/com/gitblit/build/BuildWebXml.java
@@ -60,7 +60,9 @@
   }
   private static void generateWebXml(Params params) throws Exception {
      StringBuilder parameters = new StringBuilder();
      // Read the current Gitblit properties
      if (params.propertiesFile != null) {
      BufferedReader propertiesReader = new BufferedReader(new FileReader(new File(
            params.propertiesFile)));
@@ -88,8 +90,6 @@
      }
      propertiesReader.close();
      StringBuilder parameters = new StringBuilder();
      for (Setting setting : settings) {
         for (String comment : setting.comments) {
            parameters.append(MessageFormat.format(COMMENT_PATTERN, comment));
@@ -97,7 +97,7 @@
         parameters.append(MessageFormat.format(PARAM_PATTERN, setting.name,
               StringUtils.escapeForHtml(setting.value, false)));
      }
      }
      // Read the prototype web.xml file
      File webxml = new File(params.sourceFile);
      char[] buffer = new char[(int) webxml.length()];
@@ -150,7 +150,7 @@
      @Parameter(names = { "--sourceFile" }, description = "Source web.xml file", required = true)
      public String sourceFile;
      @Parameter(names = { "--propertiesFile" }, description = "Properties settings file", required = true)
      @Parameter(names = { "--propertiesFile" }, description = "Properties settings file")
      public String propertiesFile;
      @Parameter(names = { "--destinationFile" }, description = "Destination web.xml file", required = true)