- if (url != null)
- {
- if (properties.containsKey(URL))
- getLog().debug(
- "Overwriting property " +
- URL + "=" + properties.getProperty(URL) +
- " with the value " + url
- );
- else
- getLog().debug("Using the value " + url);
- properties.setProperty(URL, url);
- }
- if (properties.getProperty(URL) == null)
- {
- String url = properties.getProperty(JDBC_URL);
- if (url != null)
- {
- getLog().info(URL +
- " is not set. Borrow setting from " +
- JDBC_URL +
- ": " +
- url);
- properties.setProperty(URL, url);
- }
- }
-
- if (username != null)
- {
- if (properties.containsKey(USER))
- getLog().debug("Overwriting property " +
- USER + "=" + properties.getProperty(USER) +
- " with the value " + username
- );
- else
- getLog().debug("Using the value " + username);
- properties.setProperty(USER, username);
- }
- if (properties.getProperty(USER) == null)