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=29676>.
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=29676

add classpath and classpathref to script task





------- Additional Comments From [EMAIL PROTECTED]  2004-06-23 10:12 -------
i am currently using the following workaround:

  <target name="test" depends="init">
    <scriptdef name="beanshell-test" language="beanshell">
      <element name="classpath" type="path" />
        &classpath-beanshell;

        print("Hello World!");      
        print("This is my Classpath:");
        print(getClassPath());
    </scriptdef>

    <beanshell-test>
      <classpath refid="base.path" />
    </beanshell-test>
  </target>

entity classpath-beanshell defined as:

classpath = Arrays.asList(elements.get("classpath").get(0).list());
Iterator i = classpath.iterator();
while (i.hasNext()) {
  addClassPath(i.next());
}

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

Reply via email to