subant on condition
I'd like to execute subant on some condition. something like:

    <if>
    <equals value="value1" property="${some.property">
    <then>
      <subant target="@{target}" failonerror="true" inheritall="false">
     	<buildpath refid="some-ref1" />
      </subant>
    </then>
    <else>
      <subant target="@{target}" failonerror="true" inheritall="false">
              <buildpath refid="some-ref2" />
      </subant>
    </else>
    </if>

But can't find a way to do it. Read the ant manual and googled, but no solution is found.

Thanks.
subant on condition
===

I'd like to execute subant on some condition. something like:

    <if>
    <equals value="value1" property="${some.property">
    <then>
      <subant target="@{target}" failonerror="true" inheritall="false">
     	<buildpath refid="some-ref1" />
      </subant>
    </then>
    <else>
      <subant target="@{target}" failonerror="true" inheritall="false">
              <buildpath refid="some-ref2" />
      </subant>
    </else>
    </if>

But can't find a way to do it. Read the ant manual and googled, but no solution is found.

Thanks.