> From: Jack Woehr [mailto:[EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to