Hi
this is not possible :-( ccnet executes nant, the nant script *could* update the config file (not recommended!), but the changes will only be in effect on the NEXT integration run. but why you want to do this? where is this csv file coming from? if you really need someting that can update the users being mailed at runtime I would suggest make a JIRA issue, and document clearly HOW you would like it with kind regards Ruben Willems On Mon, Jun 29, 2009 at 2:52 PM, madhu nambiar <[email protected]>wrote: > yes sure,i can make that clear.I want my ccnet.config file which invokes > the nant scripts which reads the value from the text file(In this case my > mail ID ) and this same value should be updated into the email section in > ccnet.config file > dor eg: > > <email [email protected] mailhost="smtp.company" > includeDetails="TRUE"> > <users> > > <user name="Maddy" group="buildmaster" [email protected]/> > </users> > > So i want this adress to change dynamically i.e when the ccnet.config > invokes the nant and the nant reads the value from the text file.That same > value should be updated in the address section. > > Thanks and regards > maddy > > On Mon, Jun 29, 2009 at 6:02 PM, Ruben Willems <[email protected]>wrote: > >> Hi >> >> >> now I'm confused, what does the mailing section of ccnet.config has to do >> with the reading of this csv file? >> >> >> >> with kind regards >> Ruben Willems >> >> On Mon, Jun 29, 2009 at 2:21 PM, madhu nambiar <[email protected] >> > wrote: >> >>> 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 >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >
