use of org.opendatakit.briefcase.operations.PullFormFromAggregate.PULL_FORM_FROM_AGGREGATE in project briefcase by opendatakit.
the class Launcher method main.
public static void main(String[] args) {
BriefcasePreferences appPreferences = BriefcasePreferences.appScoped();
if (!appPreferences.hasKey(BRIEFCASE_TRACKING_CONSENT_PROPERTY))
appPreferences.put(BRIEFCASE_TRACKING_CONSENT_PROPERTY, TRUE.toString());
Optional<SentryClient> sentry = SENTRY_ENABLED ? Optional.of(initSentryClient(appPreferences)) : Optional.empty();
new Cli().deprecate(DEPRECATED_PULL_AGGREGATE, PULL_AGGREGATE).deprecate(DEPRECATED_PULL_IN_PARALLEL, MAX_HTTP_CONNECTIONS).deprecate(DEPRECATED_AGGREGATE_SERVER, SERVER_URL).register(PULL_FORM_FROM_AGGREGATE).register(PullFormFromCentral.OPERATION).register(PUSH_FORM_TO_AGGREGATE).register(PushFormToCentral.OPERATION).register(IMPORT_FROM_ODK).register(EXPORT_FORM).register(CLEAR_PREFS).otherwise((cli, commandLine) -> {
if (args.length == 0)
launchGUI();
else
runLegacyCli(commandLine, cli::printHelp);
}).onError(throwable -> {
System.err.println(throwable instanceof BriefcaseException ? "Error: " + throwable.getMessage() : "Unexpected error in Briefcase. Please review briefcase.log for more information. For help, post to https://forum.getodk.org/c/support");
log.error("Error", throwable);
sentry.ifPresent(client -> client.sendException(throwable));
System.exit(1);
}).run(args);
}
Aggregations