jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/latka-scratch/src/java/org/apache/watchdog Watchdog.java
Date Tue, 03 Sep 2002 20:03:48 GMT
morgand     2002/09/03 13:03:48

  Modified:    latka-scratch/src/java/org/apache/watchdog Watchdog.java
  Log:
  allows execution of 1 or more entities
  
  Revision  Changes    Path
  1.4       +8 -5      jakarta-watchdog-4.0/latka-scratch/src/java/org/apache/watchdog/Watchdog.java
  
  Index: Watchdog.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/latka-scratch/src/java/org/apache/watchdog/Watchdog.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Watchdog.java	3 Sep 2002 19:48:10 -0000	1.3
  +++ Watchdog.java	3 Sep 2002 20:03:48 -0000	1.4
  @@ -32,8 +32,8 @@
       public static void main(String args[]) throws Exception {
   
           Watchdog watchdog = new Watchdog();
  -        if (args.length == 1) {
  -            watchdog.runTests(args[0]);
  +        if (args.length >= 1) {
  +            watchdog.runTests(args);
           } else {
               watchdog.runTests();
           }
  @@ -45,7 +45,7 @@
           return watchdogProps;
       }
   
  -    protected void runTests(String entityName) throws LatkaException {
  +    protected void runTests(String[] entityNames) throws LatkaException {
           try {
               Properties watchdogProps = getWatchdogProps();
               String dtdLocation = 
  @@ -54,8 +54,11 @@
               Element suiteElement = new Element("suite");
               suiteElement.setAttribute("defaultHost","${host}");
               suiteElement.setAttribute("defaultPort","${port}");
  -            EntityRef ref = new EntityRef(entityName);
  -            suiteElement.addContent(ref);
  +
  +            for (int i = 0; i < entityNames.length; ++i) {
  +                EntityRef ref = new EntityRef(entityNames[i]);
  +                suiteElement.addContent(ref);
  +            }
   
               DocType type = new DocType("suite",dtdLocation);
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:watchdog-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:watchdog-dev-help@jakarta.apache.org>


Mime
View raw message