DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34156>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34156





------- Additional Comments From [EMAIL PROTECTED]  2005-03-30 04:36 -------
> No interface would be best, i.e., Batik automatically determines how to 
> execute 
> the scripts.

  Sure but obviously the proper place for this is _not_ Batik but
Rhino it's self.

> How would you change the optimization level through a RhinoInterpreter object?

It's not quite as simple as I had at first thought.
The best route would probably be to subclass the RhinoInterpreter
and override the enterContext method:

    public Context enterContext(){
       Context ctx = super.enterContext();
       ctx.setOptimizationLevel(-1);
       return ctx;
    }
The replace the script services file with one that
references your subclass instead of the default Rhino.
If you fiddle with the classpath you _can_ do this
even for the rasterizer.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to