diff --git a/src/com/binarythought/jdbcjson/JDBCJSON.java b/src/com/binarythought/jdbcjson/JDBCJSON.java index 62aff89..5072a7e 100644 --- a/src/com/binarythought/jdbcjson/JDBCJSON.java +++ b/src/com/binarythought/jdbcjson/JDBCJSON.java @@ -64,6 +64,7 @@ public class JDBCJSON public void run(String job) throws Exception { String url = properties.getProperty(job + ".url"); + if(url == null){ url = properties.getProperty(".url"); } String sql = properties.getProperty(job + ".sql"); if(sql == null){ sql = "SELECT * FROM " + job; } @@ -72,6 +73,7 @@ public class JDBCJSON if(out == null){ out = job + ".json"; } String driver = properties.getProperty(job + ".driver"); + if(driver == null){ driver = properties.getProperty(".driver"); } if(driver != null){ Class.forName(driver); } Connection conn = null;