java 10 的 Apache Ant 版本

Apache Ant version for java 10

Ant 1.10.2 与 Java 10 兼容吗? ant 文档不是很清楚:它只是说它与 Java 1.5 的最低版本兼容。我如何确定它与 java 10 兼容?谢谢!

它没有被明确列为与 Java 10 兼容,但如果您查看最新 Ant 的 release notes

  • added "javac10+" as new supported value for javac's compiler attribute.
    • javah has been removed from Java 10. The task will now throw an exception if you try to use it while running Java 10 or newer.

所以他们提到 Java 10 关于 javac 和 javah,所以我认为它应该有效。