geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r367841 - /geronimo/gbuild/trunk/gbuild-report/src/main/java/org/apache/geronimo/gbuild/report/GenerateReport.java
Date Wed, 11 Jan 2006 00:13:49 GMT
Author: dblevins
Date: Tue Jan 10 16:13:47 2006
New Revision: 367841

URL: http://svn.apache.org/viewcvs?rev=367841&view=rev
Log:
Ability to say you want the html forced

Modified:
    geronimo/gbuild/trunk/gbuild-report/src/main/java/org/apache/geronimo/gbuild/report/GenerateReport.java

Modified: geronimo/gbuild/trunk/gbuild-report/src/main/java/org/apache/geronimo/gbuild/report/GenerateReport.java
URL: http://svn.apache.org/viewcvs/geronimo/gbuild/trunk/gbuild-report/src/main/java/org/apache/geronimo/gbuild/report/GenerateReport.java?rev=367841&r1=367840&r2=367841&view=diff
==============================================================================
--- geronimo/gbuild/trunk/gbuild-report/src/main/java/org/apache/geronimo/gbuild/report/GenerateReport.java
(original)
+++ geronimo/gbuild/trunk/gbuild-report/src/main/java/org/apache/geronimo/gbuild/report/GenerateReport.java
Tue Jan 10 16:13:47 2006
@@ -44,13 +44,14 @@
     private final File workDir;
     private final File reportsDir;
     private final File outputDir;
-    private final boolean forceHtml = false;
+    private final boolean forceHtml;
 
-    public GenerateReport(File sectionsFile, File workDir, File reportsDir, File outputDir)
{
+    public GenerateReport(File sectionsFile, File workDir, File reportsDir, File outputDir,
boolean forceHtml) {
         this.sectionsFile = sectionsFile;
         this.workDir = workDir;
         this.reportsDir = reportsDir;
         this.outputDir = outputDir;
+        this.forceHtml = forceHtml;
     }
 
     public static void main(String[] args) throws Exception {
@@ -92,12 +93,18 @@
                 return;
             }
         }
+
+        boolean forceHtml = false;
+        if (args.length > 4) {
+            forceHtml = args[4].equalsIgnoreCase("true");
+        }
+
         if (!outputDir.isDirectory()) {
             System.out.println("outputDir is not a directory: " + outputDir.getAbsolutePath());
             return;
         }
 
-        new GenerateReport(sectionsFile, workDir, reportsDir, outputDir).execute();
+        new GenerateReport(sectionsFile, workDir, reportsDir, outputDir, forceHtml).execute();
         System.out.println("Elapsed time: " + (System.currentTimeMillis() - processStart)
/ 1000 + " sec");
     }
 



Mime
View raw message