cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ariel Weisberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-13232) "multiple versions of ant detected in path for junit" printed for every junit test case spawned by "ant test"
Date Wed, 22 Feb 2017 15:23:44 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-13232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15878467#comment-15878467
] 

Ariel Weisberg commented on CASSANDRA-13232:
--------------------------------------------

||code|utests|dtests||
|[trunk|https://github.com/apache/cassandra/compare/trunk...aweisberg:cassandra-13232?expand=1]|[utests|https://cassci.datastax.com/view/Dev/view/aweisberg/job/aweisberg-cassandra-13232-testall/1/]|[dtests|https://cassci.datastax.com/view/Dev/view/aweisberg/job/aweisberg-cassandra-13232-dtest/1/]|

> "multiple versions of ant detected in path for junit" printed for every junit test case
spawned by "ant test"
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-13232
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13232
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Build
>            Reporter: Michael Kjellman
>            Assignee: Michael Kjellman
>             Fix For: 4.x
>
>         Attachments: 673.diff
>
>
> There is a super annoying junit warning logged before every junit test case when you
run "ant test". This is due to the fact that the ant junit task that we have configured in
our build.xml sources the system class path and most importantly what's in ant.library.dir.
>     [junit] WARNING: multiple versions of ant detected in path for junit 
>     [junit]          jar:file:/usr/local/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
>     [junit]      and jar:file:/Users/mkjellman/Documents/mkjellman-cie-cassandra-trunk/build/lib/jars/ant-1.9.6.jar!/org/apache/tools/ant/Project.class
> The fix here is to explicitly exclude the ant jar downloaded from the maven tasks that
ends up in ${build.lib} and ${build.dir.lib} so only the ant libraries from the system class
path are used.
> I played around with excluding the ant classes/jars from the system class path in favor
of using the ones we copy into ${build.lib} and ${build.dir.lib} with no success. After reading
the documentation it seems you always want to use the libs that shipped with whatever is in
$ANT_HOME so i believe excluding the jars from the build lib directories is the correct change
anyways.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message