org.jruby
Class JarBootstrapMain

java.lang.Object
  extended by org.jruby.JarBootstrapMain

public class JarBootstrapMain
extends java.lang.Object

A specialized "main" entry point that assumes it will run a specific file (jar-bootstrap.rb) when launching. This allows modifying only the manifest's Main-Class and adding this file to create a self-contained executable JRuby application. Example usage:

 ~/projects/jruby $ cp lib/jruby.jar myapp.jar

 ~/projects/jruby $ cat jar-bootstrap.rb
 puts "hello"

 ~/projects/jruby $ jar ufe myapp.jar org.jruby.JarBootstrapMain jar-bootstrap.rb

 ~/projects/jruby $ java -jar myapp.jar
 hello
 


Field Summary
static java.lang.String JAR_BOOTSTRAP
           
 
Constructor Summary
JarBootstrapMain()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAR_BOOTSTRAP

public static final java.lang.String JAR_BOOTSTRAP
See Also:
Constant Field Values
Constructor Detail

JarBootstrapMain

public JarBootstrapMain()
Method Detail

main

public static void main(java.lang.String[] args)


Copyright © 2002-2009 JRuby Team. All Rights Reserved.