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:
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
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
4 answers
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
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 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
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