ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: ${ant.target}?
Date Mon, 10 May 2004 16:23:10 GMT
> From: Jack Woehr [mailto:jax@purematrix.com]
> 
> Is there a built-in property for the current target's name, e.g.,
> ${ant.target}? Seems logical but I can't find it in the manual.

No. You can access it thru a <script> though. --DD

<?xml version="1.0"?>

<project>
  <script language="javascript">
    name = self.getOwningTarget().getName();
    self.getProject().setNewProperty("targetname", name);
  </script>
  <echo message="current target is '${targetname}'" />
</project>


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


Mime
View raw message