use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class AddExcludesCommand method execute.
@Override
public void execute() throws Exception {
if (help) {
jcommander.usage("add-excludes");
} else {
WalkModFacade facade = new WalkModFacade(OptionsBuilder.options().printErrors(printErrors));
facade.addExcludesToChain(chain, excludes, recursive, setToReader, setToWriter);
}
}
use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class AddIncludesCommand method execute.
@Override
public void execute() throws Exception {
if (help) {
jcommander.usage("add-includes");
} else {
WalkModFacade facade = new WalkModFacade(OptionsBuilder.options().printErrors(printErrors));
facade.addIncludesToChain(chain, includes, recursive, setToReader, setToWriter);
}
}
use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class AddModuleCommand method execute.
@Override
public void execute() throws Exception {
if (help) {
jcommander.usage("add-module");
} else {
WalkModFacade facade = new WalkModFacade(OptionsBuilder.options().printErrors(printErrors));
facade.addModules(modules);
}
}
use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class AddTransformationCommand method execute.
@Override
public void execute() throws Exception {
if (help) {
jcommander.usage("add");
} else {
WalkModFacade facade = new WalkModFacade(OptionsBuilder.options().printErrors(printErrors));
facade.addTransformationConfig(chain, path, recursive, buildTransformationCfg(), order, before);
}
}
use of org.walkmod.WalkModFacade in project walkmod-core by walkmod.
the class PrintModulesCommand method execute.
@Override
public void execute() throws Exception {
if (help) {
command.usage("modules");
} else {
WalkModFacade facade = new WalkModFacade(OptionsBuilder.options());
Configuration cfg = facade.getConfiguration();
if (cfg == null) {
log.error("Sorry, the current directory does not contain a walkmod configuration file or it is invalid.");
}
at = new V2_AsciiTable();
at.addRule();
at.addRow("MODULE");
at.addRule();
if (cfg != null) {
List<String> modules = cfg.getModules();
if (modules != null) {
for (String module : modules) {
at.addRow(module);
}
}
}
at.addRule();
}
}
Aggregations