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 8084] - Need access to current target name
Date Fri, 03 Mar 2006 18:24:57 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=8084>.
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=8084





------- Additional Comments From mr@marcelruff.info  2006-03-03 19:24 -------
Here is a way to do it with Javascript:

   <target name="myself" description="Just to test javascript" depends="">
      <script language="javascript">project.setProperty("target",
self.getOwningTarget().getName());</script>
      <script language="javascript">project.setProperty("target.description",
self.getOwningTarget().getDescription());</script>
      <echo message="target=${target}  description=${target.description}"/>
   </target>

regards
Marcel


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message