I'm using the <service> element in the jar task to generate the appropriate files to load a service via Java6's java.util.ServiceLoader. The jar task is incorrectly generating the directory as "service" when it should be "services", and thus the service loading fails. I believe the error could easily be fixed in org/apache/tools/ant/taskdefs; private void writeServices(ZipOutputStream zOut) throws IOException { Iterator serviceIterator; Service service; serviceIterator = serviceList.iterator(); while (serviceIterator.hasNext()) { service = (Service) serviceIterator.next(); //stolen from writeManifest super.zipFile(service.getAsStream(), zOut, "META-INF/service/" + service.getType(), //should be "services" System.currentTimeMillis(), null, ZipFileSet.DEFAULT_FILE_MODE); } }
*** This bug has been marked as a duplicate of 41201 ***