You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Robert Koberg <ro...@koberg.com> on 2008/02/27 16:05:30 UTC
bug: jar task with nested service does not create META-INF/services
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: bug: jar task with nested service does not create META-INF/services
Posted by Steve Loughran <st...@apache.org>.
Robert Koberg wrote:
> 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:
>
This is be fixed in Ant 1.7.1, which is shortly to go into beta release
https://issues.apache.org/bugzilla/show_bug.cgi?id=41201
--
Steve Loughran http://www.1060.org/blogxter/publish/5
Author: Ant in Action http://antbook.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org