You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Steve Allan <st...@wrq.com> on 2002/04/12 22:46:55 UTC

getting duplicate classes in my jar file

Hi,

I'm using <zipfileset> inside <jar> to merge external jar files along with
my compiled classes.  As an example

<jar jarfile = "big.jar" basedir = "classdir">
  <zipfileset src = "jar1.jar"/>
  <zipfileset src = "jar2.jar"/>
</jar>

It happens that several class files in my classdir have the same name as
classes in jar1.jar and jar2.jar.  When I run

jar tf big.jar

on the output, I see duplicate entries for those classes.

I've used excludes in <zipfileset> to remove the duplcates, but I would also
like to be able to

1) Have an option that tells <jar> to warn me of duplcate class files so I
don't have to jar tf them to find out.
2) Have an option that tells <jar> to overwrite duplicate classes
automatically (with a warning also).

Are there ways to do that?

Thanks.

-- Steve
// WRQ has 21 years of experience providing integration software and
// services for host-intensive environments. To learn more about our
// Reflection and Verastream products, visit http://www.wrq.com/products/


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>