Hi ruben,
              Thanks a lot .So can i echo this mail ID and update in the
mailing section of my ccnet.config file??It shoukd update dynamically .


Thanks and regards
Maddy

On Fri, Jun 26, 2009 at 4:51 PM, Ruben Willems <[email protected]>wrote:

> Hi
>
> <foreach item="Line" in="t.csv" delim="|" property="eid,packet,mail">
>     <echo message="${eid}" />
>     <echo message="${packet}" />
>     <echo message="${mail}" />
> </foreach>
>
>
> t.csv contents
> EID|Packet name|Name
> e352312|a.cpp|[email protected]
>
>
> output
>
>      [echo] EID
>      [echo] Packet name
>      [echo] Name
>      [echo] e352312
>      [echo] a.cpp
>      [echo] [email protected]
>
>
>
> as you see it is best that the csv file is delimited with a special
> character, with filled spaces
> you can trim spaces but you will have a problem with 'Packet name' this
> also contains a space
>
>
>
> with kind regards
> Ruben Willems
>
>
>   On Fri, Jun 26, 2009 at 12:49 PM, madhu nambiar <[email protected]
> > wrote:
>
>> Hi ruben,
>>                Thanks for your input .I am able to read that particular
>> line but unable to read the particular word in the line.Can u please suggest
>> me any method.Infact the link which u had given was not a straight forward
>> one.
>>
>> Thanks
>> Maddy
>>
>>   On Fri, Jun 26, 2009 at 3:15 PM, Ruben Willems <[email protected]
>> > wrote:
>>
>>> Hi
>>>
>>> the example at the bottom of the page :
>>> http://nant.sourceforge.net/release/latest/help/tasks/foreach.html
>>>
>>> that could help
>>>
>>>
>>> with kind regards
>>> Ruben Willems
>>>
>>>
>>>
>>>
>>> On Fri, Jun 26, 2009 at 11:38 AM, Maddy <[email protected]> wrote:
>>>
>>>>
>>>> Hi, I had posted a nant.build file which will read each line in the
>>>> outfile.txt.
>>>>
>>>>
>>>> <target name="main" description="compiles the source code">
>>>> <property name="i" value="0"/>
>>>> <foreach item="Line" in="outfile.txt" property="x" trim="Both">
>>>> <property name="i" value="${int::parse(i) + 1}"/>
>>>>   <if test="${i==LineToRead}">
>>>>      <property name="myInt" value="${x}"/>
>>>>   </if>
>>>>  </foreach>
>>>> <echo>found  ${myInt} at line ${LineToRead}</echo>
>>>>
>>>>
>>>>
>>>> EID              Packet name                           Name
>>>> e352312         a.cpp
>>>> [email protected]
>>>>
>>>>
>>>>
>>>> Now Can anyone suggest me a way by which i can read the 2ndline 3rd
>>>> column i.e i should be able to read the mail ID and echo this thing to
>>>> me.I am not sure if this is the right forum to ask this question .May
>>>> be if anyone had a better understanding and working experience in nant
>>>> could help me out with this as i am stuck up with this for past some
>>>> days.
>>>>
>>>> I am invoking nant from cruise control.NET.
>>>>
>>>> Thanks and regards
>>>> Maddy
>>>>
>>>>
>>>>
>>>
>>
>

Reply via email to