|
|
@ -128,7 +128,7 @@ public final class AgiStatoolCLI |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
System.out.println(LocalDateTime.now() + " AgirStatool call: " + new StringList(args).toStringSeparatedBy(" ")); |
|
|
|
logger.info("{} AgirStatool call: {}", LocalDateTime.now(), new StringList(args).toStringSeparatedBy(" ")); |
|
|
|
|
|
|
|
// logger.info("Single connection opened with [{}].", this.url); |
|
|
|
|
|
|
@ -191,7 +191,7 @@ public final class AgiStatoolCLI |
|
|
|
case "refresh": |
|
|
|
case "update": |
|
|
|
{ |
|
|
|
System.out.println("Update command…"); |
|
|
|
logger.info("Update command…"); |
|
|
|
AgirStatoolConfigFile config = new AgirStatoolConfigFile(configurationFile); |
|
|
|
Connection connection = SQLUtils.getConnexion(config.getDabataseUrl(), config.getDabataseName(), config.getDabataseLogin(), config.getDabatasePassword()); |
|
|
|
AgirStatool statool = new AgirStatool(connection, new File(config.getTargetDirectory())); |
|
|
@ -201,7 +201,7 @@ public final class AgiStatoolCLI |
|
|
|
|
|
|
|
case "projects": |
|
|
|
{ |
|
|
|
System.out.println("projects command…"); |
|
|
|
logger.info("projects command…"); |
|
|
|
AgirStatoolConfigFile config = new AgirStatoolConfigFile(configurationFile); |
|
|
|
Connection connection = SQLUtils.getConnexion(config.getDabataseUrl(), config.getDabataseName(), config.getDabataseLogin(), config.getDabatasePassword()); |
|
|
|
AgirStatool statool = new AgirStatool(connection, new File(config.getTargetDirectory())); |
|
|
@ -212,7 +212,7 @@ public final class AgiStatoolCLI |
|
|
|
|
|
|
|
case "projects+": |
|
|
|
{ |
|
|
|
System.out.println("projects+ command…"); |
|
|
|
logger.info("projects+ command…"); |
|
|
|
AgirStatoolConfigFile config = new AgirStatoolConfigFile(configurationFile); |
|
|
|
Connection connection = SQLUtils.getConnexion(config.getDabataseUrl(), config.getDabataseName(), config.getDabataseLogin(), config.getDabatasePassword()); |
|
|
|
AgirStatool statool = new AgirStatool(connection, new File(config.getTargetDirectory())); |
|
|
@ -238,7 +238,6 @@ public final class AgiStatoolCLI |
|
|
|
} |
|
|
|
|
|
|
|
logger.info("Finished."); |
|
|
|
System.out.println("Finished."); |
|
|
|
} |
|
|
|
catch (AgirStatoolException exception) |
|
|
|
{ |
|
|
|