ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <li...@bitfaeule.net>
Subject AW: name of running target
Date Thu, 18 Nov 2004 12:50:01 GMT

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


Mime
View raw message