Hi ruben,
I had removed that redirection operator from my batch file and
after the IDE execution a log file with a number got generated which had all
the compilation log and in the mail i had recieved it showed all the
warnings and errors.So that has solved my problem .
I never understood the xsl translation u had mentioned.Should i
convert the actual_output.xml to .xsl by just renaming and placing that in
the merge file tag?
This was my part of ccnet.config file before:
<merge>
<files>
<file>C:\Program
Files\CruiseControl.NET\server\xsl\actual_output.xml</file>
</files>
</merge>
<xmllogger logDir="C:\ThreePartition" />
<email from="someserver.com mailhost="smtp.server.com"
includeDetails="TRUE">
<users>
<user name="Maddy" group="buildmaster" address="[email protected]>
</users>
<groups>
<group name="buildmaster" notification="always"/>
<group name="developers" notification="change"/>
</groups>
</email>
whwnever my build succeeds in its execution,i get a log file named
log20090422152228Lbuild.228.xml(228 is just a number which shows the series)
by default.So when the redirection is removed i get the warnings and errors
included in my mail,but when i add the redirection and the merge option,i
dont get the log(i.e which is mentioned in the merge tag) file in the mail.
with kind regards
maddy
On Wed, Apr 22, 2009 at 3:22 PM, Ruben Willems <[email protected]>wrote:
> Hi
>
>
> not really : the merge publisher, merges all defined files into the buildog
> you can find these in the Artifactfolder\Buildlogs
>
> so first thing to check is open the latest buildlog file, and verify that
> this really contains the information.
> if so the data is present, you need to determine what you want to see in
> your email.
>
> This is done via xsl transformations
> if you're lucky, you can have some output already, but this is doubtfull.
>
> the best way to test this is the following
> adjust an existing xsl file, found under CruiseControl.net\server\xsl
>
> let's say compile.xsl
> this will show errors and warnings
>
> start tweaking with that one
>
>
> with kind regards
> Ruben Willems
>
>
> On Wed, Apr 22, 2009 at 11:36 AM, madhu nambiar <[email protected]
> > wrote:
>
>> Hi ruben,
>> Thanks a lot as it is working now from my set up.I just made a
>> simple change which is rather than calling the .bat file directly from my
>> ccnet.config ,i had called it indirectly.So Now the problem of backlogging
>> is also resolved.
>> Now just getting some problem with my merge output.I have a .xml which is
>> generated when my compilation is goin on in my IDE,but i am unable to merge
>> it properly.So according to my understanding i guess merging means that my
>> whole log file(output.xml which contains all the comlilation or building
>> logs) would be attached in the mail whcih would be send to me.
>> Am i right??
>> In my .bat file i just add this to get the output :
>> D:\WindRiver\wrenv.exe -p vxworks653-2.2.3 run >
>> C:\ThreePartition\actual_output.xml 2>&1
>>
>> so u can see that 'actual_output.xml' contains all the compilation logs.
>>
>>
>>
>>
>>
>> with kind regards
>> Maddy
>>
>> On Wed, Apr 22, 2009 at 12:22 PM, Ruben Willems <
>> [email protected]> wrote:
>>
>>> Hi
>>>
>>>
>>> I was hoping that the IDE would show a messagebox or so,
>>> but since you say it is invisible, there is somethinig else going on.
>>>
>>> I would advise to look in the manual, and check for known issues with
>>> commandline using your IDE.
>>> Is there maybe not a different exe you can call, that is dedicated to
>>> commandline?
>>>
>>> with kind regards
>>> Ruben Willems
>>>
>>> On Wed, Apr 22, 2009 at 6:52 AM, madhu nambiar <
>>> [email protected]> wrote:
>>>
>>>> Hi ruben,
>>>> Sorry for the late reply.I had executed nant from the
>>>> command line.I still face the same problem.Infact as u had told when i saw
>>>> the task manager i see my IDE is running but its not visible in my
>>>> screen.You had mentioned about some confirmation rite??Can u please explain
>>>> me about that.
>>>>
>>>> With kind regards
>>>> Maddy
>>>>
>>>> On Wed, Apr 22, 2009 at 12:12 AM, Ruben Willems <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>>
>>>>> open task manager, and see if the ide is running
>>>>> is so, it is probably still compiling or waiting for a confirmation.
>>>>>
>>>>> Suppose the compilation takes 1 minute, and Nant is still waiting after
>>>>> 2 minutes
>>>>> my guess would be that there is a confirmation dialog pending.
>>>>> if you run the nant build file from the command prompt, (not called
>>>>> from ccnet)
>>>>> does it show a dialog box or so?
>>>>>
>>>>> if this works out, try running it through ccnet, but via the command
>>>>> version, not the service.
>>>>> Should this also be ok, than the problem is with ccnet service /
>>>>> security.
>>>>>
>>>>>
>>>>> try these steps first, and report what you found out.
>>>>>
>>>>>
>>>>> with kind regards
>>>>> Ruben Willems
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Apr 21, 2009 at 10:40 AM, madhu nambiar <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi ruben/craig,
>>>>>> Now i really understand why it is neccessary to call
>>>>>> my IDE from nant directly rather than indirectly.I am really trying hard
>>>>>> to
>>>>>> make it work out from nant directly.This is the thing which i had tried
>>>>>> in
>>>>>> my nant.build shown below
>>>>>>
>>>>>> <exec program="D:\WindRiver\wrenv.exe" failonerror="false" >
>>>>>> <arg value="-p"/>
>>>>>> <arg value="vxworks653-2.2.3"/>
>>>>>> </exec>
>>>>>>
>>>>>> when i executed nant directly from the command line this nant was just
>>>>>> getting stuck up i mean its neither throwing any errors nor completing
>>>>>> its
>>>>>> execution.
>>>>>>
>>>>>> Any idea of what could be wrong??
>>>>>>
>>>>>>
>>>>>>
>>>>>> With kind regards
>>>>>> Maddy
>>>>>>
>>>>>> On Tue, Apr 21, 2009 at 12:31 PM, Craig & Sammi Sutherland <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hi Maddy,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> This issue has the same underlying cause as CCNET-1449 – once you can
>>>>>>> get Nant to pause and wait for the IDE to finish running, then the merge
>>>>>>> will work without any problems as well.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Craig
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *From:* [email protected] [mailto:
>>>>>>> [email protected]] *On Behalf Of *Ruben Willems
>>>>>>> *Sent:* Tuesday, 21 April 2009 6:52 p.m.
>>>>>>> *To:* [email protected]
>>>>>>> *Subject:* [ccnet-user] Re: File merging
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>>
>>>>>>> you can do that, but it will be trial and error.
>>>>>>> Can't you pass an argument or so to the IDE, so that it complete
>>>>>>> finishes,
>>>>>>> before giving back control to CruiseControl.
>>>>>>>
>>>>>>> How do you call the IDE?
>>>>>>> if possible call it directly via nant, this way other targets will
>>>>>>> only be excecuted when the IDE stops.
>>>>>>>
>>>>>>>
>>>>>>> with kind regards
>>>>>>> Ruben Willems
>>>>>>>
>>>>>>> On Tue, Apr 21, 2009 at 8:39 AM, madhu nambiar <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>> Hi ruben,
>>>>>>>
>>>>>>> So should i add some tag which mentions about some wait
>>>>>>> statement so that Merging occurs actually after the IDe closes.??
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> with kind regards
>>>>>>>
>>>>>>> Maddy
>>>>>>>
>>>>>>> On Tue, Apr 21, 2009 at 12:31 AM, Ruben Willems <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>>
>>>>>>> be sure that the IDE is closed before the merginf begins
>>>>>>>
>>>>>>>
>>>>>>> with kind regards
>>>>>>> Ruben Willems
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Apr 20, 2009 at 1:33 PM, Maddy <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi all,
>>>>>>> i hope you guys remember that i had a doubt regarding the
>>>>>>> logging of the output or extraction of the IDE contents.I am able to
>>>>>>> get that veru successfully.Thanks to everyone for the support and co
>>>>>>> orperation.So i had actually generated that output(i.e.output.xml) in
>>>>>>> my project folder.So inorder to merge it i had mentioned in my
>>>>>>> ccnet.config file inside the publisher task using the <merge>
>>>>>>> section.But when i force my build,i am able to get the output but
>>>>>>> error comes in ccnet.config window that unable to merge.please see
>>>>>>> below.
>>>>>>>
>>>>>>> [VSAT:ERROR] Publisher threw exception:
>>>>>>> ThoughtWorks.CruiseControl.Core.CruiseC
>>>>>>> ontrolException: Unable to read the contents of the file: C:
>>>>>>> \ThreePartition\outp
>>>>>>> ut.xml ---> System.IO.IOException: The process cannot access the file
>>>>>>> 'C:\ThreeP
>>>>>>> artition\output.xml' because it is being used by another process.
>>>>>>>
>>>>>>> Can u please suggest me any method by which merging can be done
>>>>>>> successfully.I have pasted the whole ccnet.config file below.
>>>>>>>
>>>>>>> <cruisecontrol>
>>>>>>>
>>>>>>> <project name="VSAT">
>>>>>>> <sourcecontrol type="filtered">
>>>>>>> <sourceControlProvider type="filesystem">
>>>>>>> <repositoryRoot>C:\ThreePartition</repositoryRoot>
>>>>>>> <autoGetSource>true</autoGetSource>
>>>>>>> <ignoreMissingRoot>false</ignoreMissingRoot>
>>>>>>> </sourceControlProvider>
>>>>>>>
>>>>>>> <exclusionFilters>
>>>>>>> <pathFilter>
>>>>>>>
>>>>>>> <pattern>C:\ThreePartition\wrSbc750gx_ThreePartition\**</
>>>>>>> pattern>
>>>>>>> </pathFilter>
>>>>>>> <pathFilter>
>>>>>>> <pattern>C:\ThreePartition\*.txt</pattern>
>>>>>>> </pathFilter>
>>>>>>> <pathFilter>
>>>>>>> <pattern>C:\ThreePartition\*.xml</pattern>
>>>>>>> </pathFilter>
>>>>>>> </exclusionFilters>
>>>>>>> </sourcecontrol>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> <triggers>
>>>>>>> <intervalTrigger name="continuous" seconds="240"
>>>>>>> buildCondition="IfModificationExists" />
>>>>>>> </triggers>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> <tasks>
>>>>>>>
>>>>>>> <nant>
>>>>>>> <executable>C:\Nant-0.85\bin\NAnt.exe</executable>
>>>>>>> <buildFile>nant.build</buildFile>
>>>>>>>
>>>>>>>
>>>>>>> </nant>
>>>>>>>
>>>>>>> </tasks>
>>>>>>>
>>>>>>> <publishers>
>>>>>>>
>>>>>>>
>>>>>>> <log>
>>>>>>> <merge file="C:\ThreePartition\output.xml"/>
>>>>>>> </log>
>>>>>>> <xmllogger logDir="C:\Program
>>>>>>> Files\CruiseControl.NET\server\DF2.0-CI
>>>>>>> \Logfiles" />
>>>>>>>
>>>>>>> </merge>
>>>>>>>
>>>>>>>
>>>>>>> <email from="[email protected]"
>>>>>>> mailhost="smtp.servermail.com" includeDetails="TRUE">
>>>>>>>
>>>>>>> <users>
>>>>>>>
>>>>>>>
>>>>>>> <user name="Maddy"
>>>>>>> group="buildmaster"
>>>>>>> address="[email protected]"/>
>>>>>>>
>>>>>>> </users>
>>>>>>>
>>>>>>> <groups>
>>>>>>>
>>>>>>> <group
>>>>>>> name="buildmaster" notification="always"/>
>>>>>>>
>>>>>>> <group
>>>>>>> name="developers" notification="change"/>
>>>>>>>
>>>>>>> </groups>
>>>>>>>
>>>>>>> </email>
>>>>>>>
>>>>>>> </publishers>
>>>>>>>
>>>>>>> </project>
>>>>>>> </cruisecontrol>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>