juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svi...@apache.org
Subject cvs commit: ws-juddi/src/junit/org/apache/juddi/datastore/jdbc Database.java
Date Mon, 23 May 2005 12:15:59 GMT
sviens      2005/05/23 05:15:59

  Modified:    src/junit/org/apache/juddi/datastore/jdbc Database.java
  Log:
  JUnit tests now look for JDBC properties as environment variables.
  
  Revision  Changes    Path
  1.3       +4 -5      ws-juddi/src/junit/org/apache/juddi/datastore/jdbc/Database.java
  
  Index: Database.java
  ===================================================================
  RCS file: /home/cvs/ws-juddi/src/junit/org/apache/juddi/datastore/jdbc/Database.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Database.java	23 May 2005 04:23:48 -0000	1.2
  +++ Database.java	23 May 2005 12:15:59 -0000	1.3
  @@ -21,7 +21,6 @@
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.apache.juddi.util.Config;
   
   
   /**
  @@ -53,10 +52,10 @@
       // grab the JDBC properties we'll need to setup 
     	// the connection pool.
     	
  -    String jdbcDriver = Config.getStringProperty(JDBC_DRIVER_KEY,DEFAULT_JDBC_DRIVER);
  -    String jdbcURL = Config.getStringProperty(JDBC_URL_KEY,DEFAULT_JDBC_URL);
  -    String jdbcUser = Config.getStringProperty(JDBC_USERNAME_KEY,DEFAULT_JDBC_USERNAME);
  -    String jdbcPassword = Config.getStringProperty(JDBC_PASSWORD_KEY,DEFAULT_JDBC_PASSWORD);
  +    String jdbcDriver = System.getProperty(JDBC_DRIVER_KEY,DEFAULT_JDBC_DRIVER);
  +    String jdbcURL = System.getProperty(JDBC_URL_KEY,DEFAULT_JDBC_URL);
  +    String jdbcUser = System.getProperty(JDBC_USERNAME_KEY,DEFAULT_JDBC_USERNAME);
  +    String jdbcPassword = System.getProperty(JDBC_PASSWORD_KEY,DEFAULT_JDBC_PASSWORD);
   
       // make sure the JDBC Driver is loaded
       
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org


Mime
View raw message