ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clare Sun <c...@exchangesolutions.net>
Subject Problem when using "jlink mergefiles" + "exec"
Date Thu, 31 May 2001 20:25:49 GMT
I was trying to using "jlink mergefiles" to merge 5 jar files, while as
"jlink" ignores META-INF directories in mergefiles, I have to using
"exec" to include  "META-INF/*.*" files into
that merged jar file, the actural code are as below:

==============================================
<jlink compress="true" outfile="${dist.dir}/RTApp.jar" >
 <mergefiles>
  <pathelement path="${dist.dir}/jmsEngine.jar" />
 <pathelement path="${basedir}/lib/crimson.jar" />
 <pathelement path="${basedir}/lib/jaxp.jar" />
 <pathelement path="${basedir}/lib/xalan.jar" />
 <pathelement path="${basedir}/lib/xerces.jar" />
</mergefiles>
</jlink>

<exec dir="${dist.dir}" executable="jar" >
  <arg line="uf RTApp.jar Meta-inf" />
</exec>
===========================================
I got the following exception:
        [jlink] linking:
D:\Cygwim\home\csun\src\rtpe\dist\RealTimeApp.jar
        [exec] java.util.zip.ZipException: duplicate entry: org/.

There is no this exception if only using "mergefiles", but, how I can
add "/META-INF/*.*"
into merged jar file??

Is there anybody can help me to solve this problem?  Thanks in advance!


Clare
Exchange Solutions. Inc
csun@exchangesolutions.net




Mime
View raw message