Hi

In my.properties file
I have defined
offline=0

In main.xml, I have


<property file="my.properties" />

<ac:var name="offline" unset="true"/>

<ac:antcallback target="_alive"

                        antfile="_p_alive.xml"

                        return="offline">

</ac:antcallback>

<echo message =" offline = ${offline}"/>



In _p_alive.xml, I have

<property file="my.properties" />

<condition property="offline" value="0" else="1">

<isreachable host="${host}" timeout="10000"/>

</condition>



But in debug mode, I could not retrieve offline property in main.xml. It
doesn't print out the offline value. It shows



Condition false; setting offline to 1

Setting project property: offline -> 1

[antcall] Exiting _p_alive.xml.

[ac:antcallback] Exiting _p_alive.xml.

Overriding previous definition of property "offline"

Setting project property: offline ->

[echo] offline =



What can I do to get the offline value ?

Thanks

Reply via email to