Hi,

I can't seem to set the depends attribute of a Target using a property.

It would be great to do something like

<target name="test" depends="${test.target}"/>

and then set the test.target property to whatever target you like.

------------------------------------------------------------------

I did manage to get around this however, as follows:

----------------------------------------------------------

<condition property="run.test-one">
       <and>
               <istrue value="${junit.present}" />
               <istrue value="${test.one}" />
       </and>
    </condition>
    <condition property="run.test-main">
       <and>
               <istrue value="${junit.present}" />
               <isfalse value="${test.one}" />
       </and>
</condition>


<target name="test-main" if="run.test-main"/>
<target name="test-one" if="run.test-one">
<target name="test" depends="test-main,test-one"/>

------------------------------------------------------------

seems like a "kludge" though. Maybe this can classify as a feature
request?

Regards

Sameer




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to