Check: http://ant.apache.org/manual/install.html#librarydependencies for bsf and rhino (javascript) - note in particular that the required rhino version is *not* the most recent one.
Peter
[EMAIL PROTECTED] wrote:
Thank you Jan,
That looks very cool. But I have a problem running it: Some jars are missing in my path and I don't know which.
Do you know whicch external jars the scriptdef-task depends on?
thanks, jacques
___
Would that be ok?
<project default="main">
<scriptdef name="whereAmI" language="javascript"><![CDATA[ selfAsTarget = self; currentTarget = selfAsTarget.getOwningTarget(); currentLocation = selfAsTarget.getLocation(); project.log(currentLocation + "Target '" + currentTarget + "'"); ]]></scriptdef>
<target name="one"> <whereAmI/> </target>
<target name="two"> <whereAmI/> </target>
<target name="main" depends="one,two"> <whereAmI/> </target>
</project>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
