Sha256: a5e5873f7a576a241195d4b19ae6dc800875a7582b7cd3e3f6136ecf7e6e43d2
Contents?: true
Size: 1.05 KB
Versions: 64
Compression:
Stored size: 1.05 KB
Contents
package org.embulk.cli; import java.net.URISyntaxException; public class Main { public static void main(String[] args) { // $ java -jar jruby-complete.jar embulk-core.jar!/embulk/command/embulk_bundle.rb "$@" String[] jrubyArgs = new String[args.length + 1]; int i; for (i = 0; i < args.length; i++) { if (args[i].startsWith("-R")) { jrubyArgs[i] = args[i].substring(2); } else { break; } } jrubyArgs[i] = getScriptPath(); for (; i < args.length; i++) { jrubyArgs[i+1] = args[i]; } org.jruby.Main.main(jrubyArgs); } private static String getScriptPath() { String resourcePath; try { resourcePath = Main.class.getProtectionDomain().getCodeSource().getLocation().toURI().toString() + "!/"; } catch (URISyntaxException ex) { resourcePath = "uri:classloader:/"; } return resourcePath + "embulk/command/embulk_bundle.rb"; } }
Version data entries
64 entries across 64 versions & 1 rubygems