Hi,
In following example I would like to recursively call the same build file
with changing  test_type property. Unfortunately test_type="-1" all the
time.
What do I do wrong?
Thanks,
Boni

<project name="someprg" default="build">
  <property name="test_type" value="-1" overwrite='false' />
  <target name="*">
  <echo message="TT:${test_type}"/>
  <if test="${target::get-current-target()=='test' and '-1'==
property::get-value('test_type')}">
  <foreach item="String" in="embedded,type2,type3" delim=" ," property="tt">
  <property name="test_type" value="${tt}" overwrite="true"/>
  <echo message="TT1:${test_type}"/>
    <nant target="test">
      <buildfiles>
        <include name=".\default.build" />
      </buildfiles>
    </nant>
  
  </foreach> 
  </if>
...
</target >

</project>    


---------output----------
[echo] TT:-1

[echo] TT1:embedded

            [echo] TT:-1

            [echo] TT1:embedded

                        [echo] TT:-1

                        [echo] TT1:embedded

                                    [echo] TT:-1

                                    [echo] TT1:embedded


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to