Bug 52472 - Jar task does not consider Services for up-to-date check
Summary: Jar task does not consider Services for up-to-date check
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2012-01-16 15:50 UTC by Michael Newcomb
Modified: 2012-01-16 16:21 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Newcomb 2012-01-16 15:50:40 UTC
The Jar task does not consider updates to services (using <service> element) as a trigger for updating a jar file.

This is problematic, especially when using NetBeans for building a jar file because you really can only effect jar file content in a post-jar task using NetBeans.

The steps to recreate are simple.

1. in one <jar> task, create jar with some class files
2. in another <jar> task, try to update that jar file with a <service> element

It will ignore the new <service> element and won't update the jar file.
Comment 1 Stefan Bodewig 2012-01-16 16:21:39 UTC
This looks simple on the surface but soon opens a can of worms that leads to comparing service definitions and merging them - see bug 51096.  I agree it would be nice if it worked.