https://bz.apache.org/bugzilla/show_bug.cgi?id=43144
--- Comment #10 from Vincent Privat <vincent.pri...@gmail.com> --- Hi, Thanks for replies! Yes I was building an uber-jar using jar > restrict > archives > zips > fileset, resulting in a 85 Mb jar file with ~2000 files. The build time took more than 30 minutes. I changed it using unzip + jar and the build time is now about 1 minute, see this commit for details: https://trac.openstreetmap.org/changeset/34703/subversion/applications/editors/josm/plugins/javafx/build.xml I debugged Ant quickly with VisualVM and found out the processing of all different files resulted in hundreds of thousands of calls to ZipResource.getInputStream(). The symptom looks the same as Stefan first comment ("We open and close the zip archive for each entry"). I will try your PR (thanks for creating it so fast!) -- You are receiving this mail because: You are the assignee for the bug.