use of org.activityinfo.i18n.tools.parser.InspectingVisitor in project activityinfo by bedatadriven.
the class Push method execute.
public void execute() throws IOException {
List<ResourceClassTerm> terms = Lists.newArrayList();
for (String className : Project.INSTANCE.getResourceClasses()) {
ResourceClass resourceClass = new ResourceClass(Project.INSTANCE.getSourceDirectory(), className);
InspectingVisitor visitor = resourceClass.inspect();
terms.addAll(visitor.getTerms());
}
if (dryRun) {
Project.INSTANCE.getTranslationSource().dumpNewTerms(terms);
} else {
Project.INSTANCE.getTranslationSource().updateTerms(terms, purge);
}
}
Aggregations