ehatcher    02/05/28 17:42:42

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional Tag:
                        ANT_15_BRANCH Script.java
  Log:
  add support for BeanShell, something we have to do because there is no 
dynamic registration of languages in BSF yet.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.14.2.1  +8 -1      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
  
  Index: Script.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/Script.java,v
  retrieving revision 1.14
  retrieving revision 1.14.2.1
  diff -u -r1.14 -r1.14.2.1
  --- Script.java       14 Apr 2002 11:16:16 -0000      1.14
  +++ Script.java       29 May 2002 00:42:42 -0000      1.14.2.1
  @@ -73,7 +73,14 @@
       private String language;
       private String script = "";
       private Hashtable beans = new Hashtable();
  -    
  +
  +    // Register BeanShell ourselves, since BSF does not
  +    // natively support it (yet).
  +    static {
  +        BSFManager.registerScriptingEngine( "beanshell",
  +            "bsh.util.BeanShellBSFEngine", new String [] { "bsh" } );
  +    }
  +
       /**
        * Add a list of named objects to the list to be exported to the script
        */
  
  
  

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

Reply via email to