Search Results

Search found 1 results on 1 pages for 'alem0lars'.

Page 1/1 | 1 

  • ANT antcall a target that defines a property

    - by alem0lars
    In ANT I want to define a target (called A) that define a property and antcall it from another target (called B). I want that the target B, after antcalling the target A, can access to the property defined in the target A. For example: <target name="B"> <antcall target="A" inheritAll="true" inheritRefs="true" /> <echo>${myprop}</echo> </target> <target name="A"> <property name="myprop" value="myvalue" /> </target> However it doesn't work and <echo>${myprop}</echo> doesn't print myvalue (I think because the property myprop isn't defined in B). Is there any way to do that? Thanks..

    Read the article

1