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

Ant version used by the Jazz Build Engine for 3.0.1?

Hi folks,

I'm having some trouble executing a junit ant task as part of a JBE build. The tests I'm trying to run are Junit 4 and I keep getting the following message:

<failure>junit.framework.AssertionFailedError: No tests found in mypackage.test.AllTests

</failure>


The ant.version reported in the junit result file is 1.6.5 rather than the 1.7 I expected so I suspect that is why it's failing to recognize the tests. Does the JBE for 3.0.1 use Ant 1.7? If not, is there some way to point it to a 1.7 installation?

Thanks,
Tim

0 votes



4 answers

Permanent link
Hi folks,

I'm having some trouble executing a junit ant task as part of a JBE build. The tests I'm trying to run are Junit 4 and I keep getting the following message:

<failure>junit.framework.AssertionFailedError: No tests found in mypackage.test.AllTests

</failure>


The ant.version reported in the junit result file is 1.6.5 rather than the 1.7 I expected so I suspect that is why it's failing to recognize the tests. Does the JBE for 3.0.1 use Ant 1.7? If not, is there some way to point it to a 1.7 installation?

Thanks,
Tim


The JBE in 3.0.1 uses Ant 1.7.1. We have an enhancement request to move to a more recent release of Ant. If you're using a build definition that was created with the 'Ant - Jazz Build Engine' template, you can enter your own Ant configuration on the Ant tab.

Brent

0 votes


Permanent link
Hi folks,

I'm having some trouble executing a junit ant task as part of a JBE build. The tests I'm trying to run are Junit 4 and I keep getting the following message:

<failure>junit.framework.AssertionFailedError: No tests found in mypackage.test.AllTests

</failure>


The ant.version reported in the junit result file is 1.6.5 rather than the 1.7 I expected so I suspect that is why it's failing to recognize the tests. Does the JBE for 3.0.1 use Ant 1.7? If not, is there some way to point it to a 1.7 installation?

Thanks,
Tim


The JBE in 3.0.1 uses Ant 1.7.1. We have an enhancement request to move to a more recent release of Ant. If you're using a build definition that was created with the 'Ant - Jazz Build Engine' template, you can enter your own Ant configuration on the Ant tab.

Brent

Thanks Brent. I'm still a little confused though. If the ant version is 1.7 then why do I see the wrong version number in the log file twhen I add the "-version" option on the "ant" tab?

Apache Ant version 1.6.5 compiled on June 2 2005

Tim

0 votes


Permanent link
Hi folks,

I'm having some trouble executing a junit ant task as part of a JBE build. The tests I'm trying to run are Junit 4 and I keep getting the following message:

<failure>junit.framework.AssertionFailedError: No tests found in mypackage.test.AllTests

</failure>


The ant.version reported in the junit result file is 1.6.5 rather than the 1.7 I expected so I suspect that is why it's failing to recognize the tests. Does the JBE for 3.0.1 use Ant 1.7? If not, is there some way to point it to a 1.7 installation?

Thanks,
Tim


The JBE in 3.0.1 uses Ant 1.7.1. We have an enhancement request to move to a more recent release of Ant. If you're using a build definition that was created with the 'Ant - Jazz Build Engine' template, you can enter your own Ant configuration on the Ant tab.

Brent

Thanks Brent. I'm still a little confused though. If the ant version is 1.7 then why do I see the wrong version number in the log file twhen I add the "-version" option on the "ant" tab?

Apache Ant version 1.6.5 compiled on June 2 2005

Tim

Hi Tim,

Could you run a very simple build xml with these lines. The antversion Ant task started with Ant 1.7.


<antversion property="antversion"/>
<echo message="*** ${antversion} ***"/>


Brent

0 votes


Permanent link
Hi folks,

I'm having some trouble executing a junit ant task as part of a JBE build. The tests I'm trying to run are Junit 4 and I keep getting the following message:

<failure>junit.framework.AssertionFailedError: No tests found in mypackage.test.AllTests

</failure>


The ant.version reported in the junit result file is 1.6.5 rather than the 1.7 I expected so I suspect that is why it's failing to recognize the tests. Does the JBE for 3.0.1 use Ant 1.7? If not, is there some way to point it to a 1.7 installation?

Thanks,
Tim


The JBE in 3.0.1 uses Ant 1.7.1. We have an enhancement request to move to a more recent release of Ant. If you're using a build definition that was created with the 'Ant - Jazz Build Engine' template, you can enter your own Ant configuration on the Ant tab.

Brent

Thanks Brent. I'm still a little confused though. If the ant version is 1.7 then why do I see the wrong version number in the log file twhen I add the "-version" option on the "ant" tab?

Apache Ant version 1.6.5 compiled on June 2 2005

Tim

Hi Tim,

Could you run a very simple build xml with these lines. The antversion Ant task started with Ant 1.7.


<antversion>
<echo>


Brent

Hi Brent,

Interestingly, the result is:


BUILD FAILED
C:\...\build.xml:16: The following error occurred while executing this line:
C:\...\build.xml:76: Could not create task or type of type: antversion.

Ant could not find the task or a class this task relies upon.

...


I wonder if somehow there's a classpath issue and it's finding a different version of ant -- maybe in eclipse somewhere?

Tim

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: Nov 16 '11, 4:47 p.m.

Question was seen: 5,197 times

Last updated: Nov 16 '11, 4:47 p.m.

Confirmation Cancel Confirm