>     I need to check whether two properties are set before executing a
> task. I could check for one property using if attribute of target. How
> to check for 2 properties are set ?.
>     I dont want to write another target to check this condition. 

Inside core ant you have to

<target name="myTarget.check">
    <condition property="myTarget.do">
        <and>
            <isset property="prop1"/>
            <isset property="prop1"/>
        </and>
    </condition>
</target>

<target name="myTarget" depends="myTarget.check" if="myTarget.do">
   ...
</target>


otherwise you have to do nearly the same using AntContribs <if>...


Jan

Reply via email to