How can I get the value of the current target ant?

Based on the issue you have to patch ant or used javascript:

<target name="test">
  <script language="javascript">
    project.setNewProperty("current_target", self.getOwningTarget());
  </script>
  <echo>${current_target}</echo>
</target>

Leave a Comment