- public static void main(String[] args) throws SQLException,
- ClassNotFoundException, IOException {
+
+ public static void main(String[] args) throws SQLException, ClassNotFoundException, IOException {
+ if (args.length == 0) {
+ Properties p = new Properties();
+ p.load(new FileReader("config/gigi.properties"));
+ args = new String[] { p.getProperty("sql.driver"), p.getProperty("sql.url"), p.getProperty("sql.user"),
+ p.getProperty("sql.password") };
+ }