Hi, I want to ship a JAR file to my customer. This file should contain .class files and a DTD file. Problem is: * I would like to compress the class files (compression gives me some 300K !) * I dont want to compress the DTD file. * still I want them in the same JAR Doing that is quite simple (manually) jar cf test.jar where/my/classes/are jar uf0 test.jar where/my/dtd/is But how can I do that with ANT? Obviously not with <jar>; I had a look at <jlink>, but again: it will either compress all the output - or none of it. any idea? edwin PS: if you are wondering why I am doing this: it is nice to have XML files that look like this: <!DOCTYPE mytype SYSTEM "jar:file:///C:/test.jar!/my_dtd.dtd"> So my customer just needs to know where the JAR is - he doesnt need to know anything about my DTD file. Unfortunately code like this fails if my_dtd.dtd is compressed ;-( PPS: if this cant be done with the current task I would suggest to create one and incorporate it in ANT. I think that there should be NO difference between a tool (like ANT) and the command line - everything that you can do with command line should be available in the tool. A tool that gives you just a subset of the command line features is simply not complete [at least IMHO] And I think it is no a good decision to restrict <jar> to JDK 1.1 flags - I would prefer a software that has _all_ features but tells me: "Yeah, there is a flag "append" in <jar>; but it wont work when you are using JDK 1.1"