don't automatically define ARGV when embedding
----------------------------------------------

                 Key: JRUBY-1481
                 URL: http://jira.codehaus.org/browse/JRUBY-1481
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
    Affects Versions: JRuby 1.0.1
         Environment: Linux Fedora 7 Jruby 1.0.1
            Reporter: Derek Townsend


 when calling a compliled jruby program in a jar. the program takes command 
line arguments. but when the program is run it fails saying the optparse argv 
is not initalized.
java -jar test.jar -n test -s TestServer1 -c TestServer1.cfg -a
(eval):2 warning: already initialized constant TextMessage
Exception in thread "main" 
file:/Development/jruby-complete.jar!/optparse.rb:1720:in `const_missing': 
uninitialized constant ARGV (NameError)
from kernel/command_parser.rb:3:in `require'
from kernel/command_parser.rb:3:in `require'
from kernel/Manager.rb:21:in `require'
from kernel/Manager.rb:21:in `require'
from tert/lib/channel_startup.rb:9:in `require'
from test/lib/test_startup.rb:9:in `require'
...internal jruby stack elided...

we don't automatically define ARGV when embedding
the way this runs the compiled script is basically like embedding

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to