[
https://issues.apache.org/jira/browse/CASSANDRA-14915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16705169#comment-16705169
]
Jon Meredith commented on CASSANDRA-14915:
------------------------------------------
I think that class is always packaged up in the {{ant-junit}} dependency, I
grabbed the rpm and expanded it and checked the class is there. I couldn't
find an {{ant-optional}} package that included it under the standard repos.
{code}
[jmeredith@localhost x]$ jar tvf ./usr/share/java/ant/ant-junit.jar | grep
JUnitTask
1746 Wed Mar 01 08:56:26 MST 2017
org/apache/tools/ant/taskdefs/optional/junit/JUnitTask$1.class
{code}
If you always need to install {{ant-junit}} on Fedora, does this patch still
have value other than permitting the build task to succeed (and none of the
test tasks)?
> Handle ant-optional dependency
> ------------------------------
>
> Key: CASSANDRA-14915
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14915
> Project: Cassandra
> Issue Type: Bug
> Components: Build
> Reporter: Marcus Eriksson
> Assignee: Marcus Eriksson
> Priority: Major
> Fix For: 3.0.x, 3.11.x, 4.x
>
>
> CASSANDRA-13117 added a JUnit task which dumps threads on unit test timeout,
> and it depends on a class in {{org.apache.tools.ant.taskdefs.optional}} which
> seems to not always be present depending on how {{ant}} was installed. It can
> cause this error when building;
> {code:java}
> Throws: cassandra-trunk/build.xml:1134: taskdef A class needed by class
> org.krummas.junit.JStackJUnitTask cannot be found:
> org/apache/tools/ant/taskdefs/optional/junit/JUnitTask using the classloader
> AntClassLoader[/.../cassandra-trunk/lib/jstackjunit-0.0.1.jar]
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]