Ant JunitTask update to support JDK9 modules
Alex Buckley
alex.buckley at oracle.com
Wed Apr 27 19:30:22 UTC 2016
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-3A6CA4832F82@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
>
More information about the jigsaw-dev
mailing list