Hi Tomas,

Your changes skyrocket in complexity because your Ant setup involves both ant-junit.jar and ant-junit4.jar. The JUnit task documentation (https://ant.apache.org/manual/Tasks/junit.html) doesn't suggest this is necessary or desirable. It's either pointless or dangerous to have both JARs on the classpath, which is why the module system rejects them as automatic modules when both are on the modulepath. Can you purify your Ant setup to have just one of these JARs?

Alex

On 4/27/2016 9:17 AM, Tomas Zezula wrote:
As seen in the modulepath and classpath mixture thread there are many 
possibilities how to execute unit tests.
I've sumarised them on the ant-dev mailing list in the context of Apache Ant in 
http://mail-archives.apache.org/mod_mbox/ant-dev/201604.mbox/%3cafe6c849-0622-44d1-9ff7-3a6ca4832...@oracle.com%3E
As a result of the discussion I've created a pull request for Apache Ant 
JUnitTask to support JDK9 modules:
https://github.com/apache/ant/pull/18

Thanks for comments!
I will link them back to the pull request.

-- Tomas

Reply via email to