Bonio Lopez wrote:
> Hi,
> Following code prints version 1.1 on my PC and  ignores overwrite=false.
> I use nant 0.85 rc4 on windows
> Regards,
> Boni
>
> <project >
> <property name="nant.settings.currentframework" value="net-2.0"/>
> <property name="nant.settings.currentframework" value="net-1.1"
> overwrite="false"/>
> <echo>"${nant.settings.currentframework}"     </echo>
> </project>
>   
This is a built-in property, and hence it will always be set.  So while 
it appears to be doing the wrong thing in ignoring the overwrite flag, 
it still wouldn't do what you want.  If you really need to check it, 
you'll have to do a string comparison on the current value.  Or there 
may be a better way to do what you're really trying to accomplish (such 
as just setting the target on the command line).

Gary


-------------------------------------------------------------------------
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