Improved help and build display.
This commit is contained in:
parent
ce6b42051a
commit
41da9271c0
2 changed files with 6 additions and 4 deletions
|
@ -102,7 +102,7 @@ public final class StatoolInfosCLI
|
||||||
message.appendln(" statoolinfos [ -h | -help | --help ]");
|
message.appendln(" statoolinfos [ -h | -help | --help ]");
|
||||||
message.appendln(" statoolinfos [ -v | -version | --version ]");
|
message.appendln(" statoolinfos [ -v | -version | --version ]");
|
||||||
message.appendln(" statoolinfos [ build | crawl | htmlize ] [ directory | file ]");
|
message.appendln(" statoolinfos [ build | crawl | htmlize ] [ directory | file ]");
|
||||||
message.appendln(" statoolinfos clear");
|
message.appendln(" statoolinfos clear [ directory | file ]");
|
||||||
|
|
||||||
logger.info(message.toString());
|
logger.info(message.toString());
|
||||||
}
|
}
|
||||||
|
@ -290,8 +290,5 @@ public final class StatoolInfosCLI
|
||||||
logger.info("Bad usage.");
|
logger.info("Bad usage.");
|
||||||
displayHelp();
|
displayHelp();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
logger.info("Finished.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,7 @@ public class StatoolInfos
|
||||||
*/
|
*/
|
||||||
public static void build(final File input) throws StatoolInfosException, IOException
|
public static void build(final File input) throws StatoolInfosException, IOException
|
||||||
{
|
{
|
||||||
|
logger.info("Build {}", input.getAbsolutePath());
|
||||||
PathPropertyList inputProperties = PathPropertyUtils.load(input);
|
PathPropertyList inputProperties = PathPropertyUtils.load(input);
|
||||||
|
|
||||||
String buildDirectoryName = inputProperties.get("conf.build.directory");
|
String buildDirectoryName = inputProperties.get("conf.build.directory");
|
||||||
|
@ -200,6 +201,9 @@ public class StatoolInfos
|
||||||
crawlSection.put("crawl.url", url.toString());
|
crawlSection.put("crawl.url", url.toString());
|
||||||
target.addAll(crawlSection);
|
target.addAll(crawlSection);
|
||||||
|
|
||||||
|
cache.store(url.toString(), target);
|
||||||
|
|
||||||
|
//
|
||||||
PathPropertyList section = inputProperties.getByPrefix("subs");
|
PathPropertyList section = inputProperties.getByPrefix("subs");
|
||||||
for (PathProperty property : section)
|
for (PathProperty property : section)
|
||||||
{
|
{
|
||||||
|
@ -241,6 +245,7 @@ public class StatoolInfos
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue