* Ths file is part of XMLCalabash.
* Created by ndw on 10/25/13.
*/
public class Piperack {
public static void main(String[] args) throws Exception {
UserArgs userArgs = null;
try {
userArgs = new ParseArgs().parsePiperack(args);
} catch (XProcException xe) {
System.err.println(xe.getMessage());
System.exit(-1);
}
XProcConfiguration config = null;
XProcRuntime runtime = null;
try {
config = userArgs.createConfiguration();
runtime = new XProcRuntime(config);
} catch (SaxonApiException e) {
System.err.println(e.getMessage());
System.exit(-1);
}
if (userArgs.isShowVersion()) {
System.out.println("Piperack, a web server for running XProc pipelines.");
XProcConfiguration.showVersion(runtime);
}
// Create a component