]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added '-results' options to set the result ouput directory.
authorFinn Bock <bckfnn@apache.org>
Tue, 10 Feb 2004 17:42:03 +0000 (17:42 +0000)
committerFinn Bock <bckfnn@apache.org>
Tue, 10 Feb 2004 17:42:03 +0000 (17:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197346 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/tools/TestConverter.java

index 8bb54510fa794c119dce8d0ca39cb48421951f46..b93cd7b308774dd0ddfe6241a91d08ee30bc3714 100644 (file)
@@ -108,6 +108,7 @@ public class TestConverter extends AbstractLogEnabled {
         }
         TestConverter tc = new TestConverter();
 
+        String results = "results";
         String testFile = null;
         for (int count = 0; count < args.length; count++) {
             if (args[count].equals("-failOnly")) {
@@ -118,6 +119,8 @@ public class TestConverter extends AbstractLogEnabled {
                 tc.setDebug(true);
             } else if (args[count].equals("-b")) {
                 tc.setBaseDir(args[++count]);
+            } else if (args[count].equals("-results")) {
+                results = args[++count];
             } else {
                 testFile = args[count];
             }
@@ -126,7 +129,7 @@ public class TestConverter extends AbstractLogEnabled {
             System.out.println("test suite file name required");
         }
 
-        tc.runTests(testFile, "results", null);
+        tc.runTests(testFile, results, null);
     }
 
     /**