dlr         01/08/20 17:48:50

  Modified:    src/test/org/apache/torque BaseTestCase.java
  Log:
  Gated debugging statement.
  
  Revision  Changes    Path
  1.4       +11 -3     
jakarta-turbine-torque/src/test/org/apache/torque/BaseTestCase.java
  
  Index: BaseTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-torque/src/test/org/apache/torque/BaseTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- BaseTestCase.java 2001/08/20 23:27:37     1.3
  +++ BaseTestCase.java 2001/08/21 00:48:50     1.4
  @@ -70,11 +70,16 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Daniel Rall</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Christopher Elkins</a>
  - * @version $Id: BaseTestCase.java,v 1.3 2001/08/20 23:27:37 dlr Exp $
  + * @version $Id: BaseTestCase.java,v 1.4 2001/08/21 00:48:50 dlr Exp $
    */
   public abstract class BaseTestCase extends TestCase
   {
       /**
  +     * Conditional compilation flag.
  +     */
  +    private static final boolean DEBUG = false;
  +
  +    /**
        * The path to the configuration file.
        */
       private static final String CONFIG_FILE =
  @@ -113,8 +118,11 @@
               ExtendedProperties config = new ExtendedProperties(CONFIG_FILE);
               // HELP: What about the database.* properties?
               config = config.subset("services.DatabaseService");
  -            System.out.println("Using configuration file: " +
  -                               config.getString(Torque.DATABASE_DEFAULT));
  +            if (DEBUG)
  +            {
  +                System.out.println("Using configuration file: " +
  +                                   config.getString(Torque.DATABASE_DEFAULT));
  +            }
   
               Properties p = new Properties();
               p.load(new FileInputStream(CONFIG_FILE));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to