On 2018-10-02, Bruce Alspaugh wrote:

> As requested, I've created a new issue.

Thank you.

> Is there some reason why Ant does not use the JDK's jar tool?

Most of them are historical. For many years the archives created by the
jar tool simply have not really been valid ZIP files - actually
java.util.zip is to blame and forced us to recreate our own zip library.

Ant's <jar> task really mostly is a manifest aware variant of <zip> and
some of the features the task offers (merging manifests while merging
archives) would be difficult to do with the jar command line tool.

And then there is the performance reason which has become less
significant over time. In the earlier years of Ant JVM startup time was
a real problem so you avoided creating new processes by all
means. <javac> runs the compiler inside of the same JVM that is
executing Ant by default for just this reason. IIRC the jar command line
tool didn't offer a stable Java interface you could call into back then
(i.e. Java 1.1 or 1.2).

As I said, most reasons are historical.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to