Tony CHEMIT pushed to branch develop at ultreiaio / ird-t3 Commits: 3ba254f0 by Tony CHEMIT at 2018-03-07T23:56:26Z use now real private avdth... - - - - - 1 changed file: - t3-actions/src/main/java/fr/ird/t3/actions/io/input/test/MSAccessTestConfiguration.java Changes: ===================================== t3-actions/src/main/java/fr/ird/t3/actions/io/input/test/MSAccessTestConfiguration.java ===================================== --- a/t3-actions/src/main/java/fr/ird/t3/actions/io/input/test/MSAccessTestConfiguration.java +++ b/t3-actions/src/main/java/fr/ird/t3/actions/io/input/test/MSAccessTestConfiguration.java @@ -36,7 +36,7 @@ import java.util.regex.Pattern; */ public class MSAccessTestConfiguration { - private static final String DB_PATH = "src:test:access"; + private static final String DB_PATH = "..:.mvn:cache:avdth"; private static final Log log = LogFactory.getLog(MSAccessTestConfiguration.class); private static File basedir; private final Pattern testNamePattern; @@ -76,10 +76,10 @@ public class MSAccessTestConfiguration { dbBasedir = new File(dbBasedir, s1); } if (!dbBasedir.exists()) { - log.warn("Db directory [" + dbBasedir + "] does not exist, will skip test."); + log.warn(String.format("Db directory [%s] does not exist, will skip test.", dbBasedir)); return false; } - log.info("Db directory [" + basedir + "] detected, will do tests."); + log.info(String.format("Db directory [%s] detected, will do tests.", dbBasedir)); String s = System.getenv("executeAll"); if (!StringUtils.isEmpty(s)) { executeAll = Boolean.valueOf(s); @@ -121,24 +121,24 @@ public class MSAccessTestConfiguration { return false; } if (lastYear == null && exactYear == null && executeOnce && !executeAll) { - log.debug("Skip test " + testName + " executeAll flag is off"); + log.debug(String.format("Skip test %s executeAll flag is off", testName)); return false; } dbName = String.format(dbPattern, ocean, group); accessFile = new File(new File(dbBasedir, ocean), dbName); boolean exists = accessFile.exists(); if (!exists) { - log.warn("Could not find access file " + accessFile); + log.warn(String.format("Could not find access file %s", accessFile)); return false; } - log.debug("DbName = " + dbName); + log.debug(String.format("DbName = %s", dbName)); execute = true; return true; } public boolean doTest(String testName) { if (!execute) { - log.info("will not execute test [" + testName + "]"); + log.info(String.format("Will not execute test [%s]", testName)); return false; } executeOnce = true; View it on GitLab: https://gitlab.com/ultreiaio/ird-t3/commit/3ba254f0a013214b36e9684daca225445... --- View it on GitLab: https://gitlab.com/ultreiaio/ird-t3/commit/3ba254f0a013214b36e9684daca225445... You're receiving this email because of your account on gitlab.com.