[
https://issues.apache.org/jira/browse/CASSANDRA-13232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Brown updated CASSANDRA-13232:
------------------------------------
Resolution: Fixed
Fix Version/s: (was: 4.x)
4.0
Status: Resolved (was: Ready to Commit)
> "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.0
>
> 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)