Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Developers List »

bug: jar task with nested service does not create META-INF/services

Robert Koberg

2008-02-27

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I am trying to use the nested service element in the jar class. It
produces a META-INF/service rather than META-INF/services:


  /**
  * Write SPI Information to JAR
  */
  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(),
                System.currentTimeMillis(), null,
                ZipFileSet.DEFAULT_FILE_MODE);
    }
  }

Bug?

best,
-Rob




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@(protected)
For additional commands, e-mail: dev-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.