[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-dev
Subject:    cvs commit: jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker
From:       juergen () apache ! org
Date:       2003-10-20 12:50:12
[Download RAW message or body]

juergen     2003/10/20 05:50:12

  Modified:    testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker
  MultiTProcessorExecuter.java
  Log:
  more flexibility in specifying the input dir and the output file.
  
  Revision  Changes    Path
  1.9       +17 -11    \
jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker/MultiTProcessorExecuter.java
  
  Index: MultiTProcessorExecuter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker/MultiTProcessorExecuter.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- MultiTProcessorExecuter.java	22 May 2003 15:25:19 -0000	1.8
  +++ MultiTProcessorExecuter.java	20 Oct 2003 12:50:12 -0000	1.9
  @@ -80,10 +80,9 @@
   public class MultiTProcessorExecuter {
   
       private String xdavHome = System.getProperty("xdav.home");
  -    private String xdavHost = System.getProperty("xdav.host");
  -    private String xdavPort = System.getProperty("xdav.port");
  +    private String xdavInPath = System.getProperty("xdav.inpath");
  +    private String xdavOutfile = System.getProperty("xdav.outfile");
   
  -    private static PrintStream  resultOutput = null;
       private static boolean      result       = true;
   
   
  @@ -103,9 +102,16 @@
               System.out.println("xdav.home is not set!");
               throw new Error("xdav.home is not set!");
           }
  -        xdavHome = xdavHome+java.io.File.separatorChar+"testsuite";
  -        xdavHome = xdavHome+java.io.File.separatorChar+"junit";
  -        xdavHome = xdavHome+java.io.File.separatorChar+"xmltestcases";
  +        if (xdavInPath != null) {
  +            xdavHome = xdavInPath;
  +        } else {
  +            xdavHome = xdavHome+java.io.File.separatorChar+"testsuite";
  +            xdavHome = xdavHome+java.io.File.separatorChar+"junit";
  +            xdavHome = xdavHome+java.io.File.separatorChar+"xmltestcases";
  +        }
  +        if (xdavOutfile == null) {
  +            xdavOutfile = \
xdavHome+java.io.File.separatorChar+".."+java.io.File.separatorChar+"testCasesResults.xml";
  +        }
       }
   
   
  @@ -113,7 +119,7 @@
       public void exceuteAllSpecifiedXMLFileByTProcessor(String[] include, String[] \
exclude) throws Exception {  
           exceuteAllSpecifiedXMLFileByTProcessor(
  -            new java.io.PrintStream(new \
FileOutputStream(xdavHome+java.io.File.separatorChar+".."+java.io.File.separatorChar+"testCasesResults.xml")),
  +            new java.io.PrintStream(new FileOutputStream(xdavOutfile)),
               include,
               exclude);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic