It's all about the answers!

Ask a question

Filepath confusion for junitLogPublisher


man fire (7111210) | asked May 26 '09, 8:34 p.m.
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.

3 answers



permanent link
Jose Miguel Ordax Cassa (2.4k2126100) | answered May 27 '09, 12:47 a.m.
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.

permanent link
Jose Miguel Ordax Cassa (2.4k2126100) | answered May 27 '09, 12:52 a.m.
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.

permanent link
Jose Miguel Ordax Cassa (2.4k2126100) | answered May 27 '09, 1:42 a.m.
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.

Your answer


Register or to post your answer.