Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Filepath confusion for junitLogPublisher

Hi Guys,

I am trying to implement junitLogPublisher.I keep getting an exception com.ibm.team.build.common.TeamBuildException: Exception parsing the path.

Currently, i'm using <touch>
my filepath attribute is set to exact path i.e.
filePath="sompath/junit.xml" but I get an exception.Yes, my junit tests are failing maybe beacuse it goes to parse an empty file it throws an exception but besides that am I doing something wrong in the filepath attribute.Do u guys create the filepath xml file before refer it to junitLogPublisher's filepath or does it automaticlaly create the file.I'm already referenced it .
<taskdef>

Your comments will be appreciated.thanks.

0 votes



3 answers

Permanent link
manonfire wrote:
Hi Guys,

I am trying to implement junitLogPublisher.I keep getting an exception
com.ibm.team.build.common.TeamBuildException: Exception parsing the
path.

Currently, i'm using <touch
my filepath attribute is set to exact path i.e.
filePath="sompath/junit.xml" but I get an exception.Yes, my
junit tests are failing maybe beacuse it goes to parse an empty file
it throws an exception but besides that am I doing something wrong in
the filepath attribute.Do u guys create the filepath xml file before
refer it to junitLogPublisher's filepath or does it automaticlaly
create the file.I'm already referenced it .
taskdef

Your comments will be appreciated.thanks.


I understand it is failing because the XML file is empty. Try the
attached file, instead a simple touch.

Hope it helps,

Chemi.

0 votes


Permanent link
Chemi wrote:
manonfire wrote:
Hi Guys,

I am trying to implement junitLogPublisher.I keep getting an exception
com.ibm.team.build.common.TeamBuildException: Exception parsing the
path.

Currently, i'm using <touch
my filepath attribute is set to exact path i.e.
filePath="sompath/junit.xml" but I get an exception.Yes, my
junit tests are failing maybe beacuse it goes to parse an empty file
it throws an exception but besides that am I doing something wrong in
the filepath attribute.Do u guys create the filepath xml file before
refer it to junitLogPublisher's filepath or does it automaticlaly
create the file.I'm already referenced it .
taskdef
Your comments will be appreciated.thanks.


I understand it is failing because the XML file is empty. Try the
attached file, instead a simple touch.

Hope it helps,

Chemi.


And the ANT Task I am using is (note that I am using basedir="." at
<project> tag):

<junit>
<formatter>
<test>
<classpath>
<pathelement>
<pathelement>
</classpath>
</junit>

<Publish>
<logPublisher>

Regards,

Chemi.

0 votes


Permanent link
I am using ThunderBird through NNTP Server and it seems attaches and XML
tags are not well synchronized with Web Server. I have sent you a direct
mail.

Regards,

Chemi.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 26 '09, 8:34 p.m.

Question was seen: 7,425 times

Last updated: May 26 '09, 8:34 p.m.

Confirmation Cancel Confirm