ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <>
Subject ant.project.invoked-targets
Date Mon, 23 Feb 2015 09:15:54 GMT
The magic property "ant.project.invoked-targets" is set when the targets are

That means, that you can't use this property in the implicit target




  <target name="one"/>

  <target name="two"/>



You could use that only inside a target


<project default="one">

    <target name="one">

        <echo>Invoked Targets: ${ant.project.invoked-targets}</echo>


    <target name="two">

        <echo>Invoked Targets: ${ant.project.invoked-targets}</echo>




The manual (properties.html) sais:

"a comma separated list of the targets that have been specified on the 

command line (the IDE, an &lt;ant&gt; task ...) when invoking the __current


IMO this is not true - or even concrete enough.


Should we just change the manual or move the place where this property is


But not sure where instead ...




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message