ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: AW: name of running target
Date Thu, 18 Nov 2004 16:43:48 GMT
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

lists@bitfaeule.net 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: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message