Handling split packages using ant.properties in java11

Viewed 18

Currently, I'm migrating my code from Java 8 to Java 11. But while migrating, I'm facing some of the issues. One of the issues is split packages which is due to the presence of same packages in two different jars. While surfing the net, I came to know that we can solve this issue with --patch-module and --add-modules commands. How do I incorporate these commands using ant.properties?

I tried adding like giving javac_compilerarg=--patch-module xxx, but it doesn't work.

0 Answers
Related