Call to ScriptingContainer#setCurrentDirectory is ignored after a call to 
ScriptingContainer#put
------------------------------------------------------------------------------------------------

                 Key: JRUBY-5841
                 URL: http://jira.codehaus.org/browse/JRUBY-5841
             Project: JRuby
          Issue Type: Bug
          Components: Embedding
    Affects Versions: JRuby 1.6.2, JRuby 1.5.6
         Environment: OS X, JDK 1.6.0_24
            Reporter: Uwe Kubosch
            Priority: Blocker


Hi!

In setting up Ruboto using JRuby, I came across this situation:

{noformat}
import org.jruby.embed.ScriptingContainer;

class JRUBY_XXXX {
    private static ScriptingContainer ruby;

    public static final void main(String[] args) {
        ruby = new ScriptingContainer();

        // This line changes the result
        // ruby.put("a_variable", "some value");

        ruby.setCurrentDirectory("/Users/uwe");
        ruby.runScriptlet("p Dir.getwd");
    }

}
{noformat}

When running the example above you get 
{noformat}
"/Users/uwe"
{noformat}

If you uncomment line 10, you get your initial working directory.  The call to 
"setCurrentDirectory" is ignored after the call to "put".

Am I missing something?

This is currently stalling a release of Ruboto, so I put a "Blocker" on this 
issue until we at least find a workaround.

Please tell me if this is wrong usage of the Blocker level, or if I should 
consider the priority of issues I report at all.



-- 
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