From 41da9271c0f808d57cf830428a5a98091f2e0cce Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 13 Sep 2020 04:12:59 +0200 Subject: [PATCH] Improved help and build display. --- src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java | 5 +---- src/fr/devinsy/statoolinfos/core/StatoolInfos.java | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java b/src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java index 156190b..cd92a08 100644 --- a/src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java +++ b/src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java @@ -102,7 +102,7 @@ public final class StatoolInfosCLI message.appendln(" statoolinfos [ -h | -help | --help ]"); message.appendln(" statoolinfos [ -v | -version | --version ]"); message.appendln(" statoolinfos [ build | crawl | htmlize ] [ directory | file ]"); - message.appendln(" statoolinfos clear"); + message.appendln(" statoolinfos clear [ directory | file ]"); logger.info(message.toString()); } @@ -290,8 +290,5 @@ public final class StatoolInfosCLI logger.info("Bad usage."); displayHelp(); } - - // - logger.info("Finished."); } } diff --git a/src/fr/devinsy/statoolinfos/core/StatoolInfos.java b/src/fr/devinsy/statoolinfos/core/StatoolInfos.java index 63b7581..302f431 100644 --- a/src/fr/devinsy/statoolinfos/core/StatoolInfos.java +++ b/src/fr/devinsy/statoolinfos/core/StatoolInfos.java @@ -46,6 +46,7 @@ public class StatoolInfos */ public static void build(final File input) throws StatoolInfosException, IOException { + logger.info("Build {}", input.getAbsolutePath()); PathPropertyList inputProperties = PathPropertyUtils.load(input); String buildDirectoryName = inputProperties.get("conf.build.directory"); @@ -200,6 +201,9 @@ public class StatoolInfos crawlSection.put("crawl.url", url.toString()); target.addAll(crawlSection); + cache.store(url.toString(), target); + + // PathPropertyList section = inputProperties.getByPrefix("subs"); for (PathProperty property : section) { @@ -241,6 +245,7 @@ public class StatoolInfos } else { + // TODO } }