ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29676] - add classpath and classpathref to script task
Date Wed, 23 Jun 2004 10:12:10 GMT
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 alphonse.bendt@it-fws.de  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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message