You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2020/09/09 09:50:09 UTC
[Bug 43144] tar task is very slow when a is used as the
source resource
https://bz.apache.org/bugzilla/show_bug.cgi?id=43144
--- Comment #12 from KC Wong <kc...@gmail.com> ---
I encountered the same problem today.
Trying to pack the following into a JAR using <archive> took 5 minutes:
<path id="runtime_classpath">
<pathelement path="${javax:javaee-api:jar}"/>
<pathelement path="${com.solacesystems:sol-jms:jar}"/>
<pathelement path="${com.fasterxml.jackson.core:jackson-databind:jar}"/>
<pathelement path="${com.fasterxml.jackson.core:jackson-core:jar}"/>
<pathelement path="${com.fasterxml.jackson.core:jackson-annotations:jar}"/>
<pathelement path="${commons-logging:commons-logging:jar}"/>
<pathelement path="${commons-lang:commons-lang:jar}"/>
<pathelement path="${log4j:log4j:jar}"/>
<pathelement path="${org.slf4j:slf4j-api:jar}"/>
<pathelement path="${org.slf4j:slf4j-log4j12:jar}"/>
</path>
<jar destfile="${out.dir}/${env}/${project.build.finalName}.jar">
<fileset
dir="${project.build.directory}\${project.build.finalName}\WEB-INF\classes"
includes="**/*.class, **/*.json, **/*.properties"
/>
<archives>
<zips>
<path refid="runtime_classpath" />
</zips>
</archives>
<manifest>
<attribute name="Main-Class" value="${mainClass}"/>
</manifest>
</jar>
I changed to use Unzip to a temp folder, and add the temp folder as a fileset
instead. That took 1 minute.
The archive tag is doing something really inefficiently...
--
You are receiving this mail because:
You are the assignee for the bug.