Jo, The code
below shows the usage of the ‘if’ attribute in an <echo> element using
the _expression_ evaluator. It should
work exactly the same with the <includes> element, which is what you
want. <project name="Test" default="All"> <!--
<property name="mySwitch" value="off" /> -->
Let me
know if you need further help. Thanks, Noel -----Original
Message----- Hi all, I'm
trying to create a task that will copy my binaries to a seperate folder after
compilation. I created a csv file with the list of files to copy and let Nant
iterate through it. Depending
on the value of a property however I want to decide whether or not to copy
these files. I can't
seem to find any documentation on how to do this exactly. Here's
a snippet from my build file: <property
name="mySwitch" value="on"/> Can
someone please tell me what the exact if-statement should look like or
where I can find documentation for more info? TIA, ps. I
know it's odd to perform the check inside the loop, but this will make sense
when I extend the script later on. |
Title: Message
- [Nant-users] Conditional copy Jo De Greef
- Re: [Nant-users] Conditional copy Ian MacLean
- RE: Re: [Nant-users] Conditional copy Noel Gifford
- RE: Re: [Nant-users] Conditional copy de . greef
- Re: Re: [Nant-users] Conditional copy Jaroslaw Kowalski
- RE: Re: Re: [Nant-users] Conditional copy de . greef
- Re: Re: Re: [Nant-users] Conditional copy Jaroslaw Kowalski
- RE: Re: [Nant-users] Conditional copy sb008515
- RE: [Nant-users] Conditional copy Fritz_Schenk
- RE: [Nant-users] Conditional copy Noel Gifford