You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Mahdi Mohammadi <ma...@gmail.com> on 2016/06/05 01:46:28 UTC

ant warning - multiple versions of ant detected in path for junit

Output of `ant test` for each test suit contains this warning:

*test:*
*    [mkdir] Created dir: /Users/mahdi/box/cassandra/build/test/cassandra*
*    [mkdir] Created dir: /Users/mahdi/box/cassandra/build/test/output*
*    [junit] WARNING: multiple versions of ant detected in path for junit *
*    [junit]
 jar:file:/usr/local/Cellar/ant/1.9.6/libexec/lib/ant.jar!/org/apache/tools/ant/Project.class*
*    [junit]      and
jar:file:/Users/mahdi/box/cassandra/build/lib/jars/ant-1.9.4.jar!/org/apache/tools/ant/Project.class*

How can I fix this warning?

Best Regards

Re: ant warning - multiple versions of ant detected in path for junit

Posted by Dave Brosius <db...@mebigfatguy.com>.
It's just a warning, so hopefully isn't an issue. It's possible that adding

includeantruntime="false"

to the <junit> tasks may help this, altho the combination of junit and 
forking might gum up the works.

I'd expect most people see this.

On 06/04/2016 09:46 PM, Mahdi Mohammadi wrote:
> Output of `ant test` for each test suit contains this warning:
>
> *test:*
> *    [mkdir] Created dir: /Users/mahdi/box/cassandra/build/test/cassandra*
> *    [mkdir] Created dir: /Users/mahdi/box/cassandra/build/test/output*
> *    [junit] WARNING: multiple versions of ant detected in path for junit *
> *    [junit]
>   jar:file:/usr/local/Cellar/ant/1.9.6/libexec/lib/ant.jar!/org/apache/tools/ant/Project.class*
> *    [junit]      and
> jar:file:/Users/mahdi/box/cassandra/build/lib/jars/ant-1.9.4.jar!/org/apache/tools/ant/Project.class*
>
> How can I fix this warning?
>
> Best Regards
>