Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387983 - java-ant-2.eclass: add support for removing taskdefs by name.
Summary: java-ant-2.eclass: add support for removing taskdefs by name.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 365179
  Show dependency tree
 
Reported: 2011-10-21 08:21 UTC by Ralph Sennhauser (RETIRED)
Modified: 2011-10-21 11:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Allows to only remove named taskdefs (java-ant-2.eclass-remove-named-taskdefs.patch,1.22 KB, patch)
2011-10-21 08:21 UTC, Ralph Sennhauser (RETIRED)
Details | Diff
Allows to only remove named taskdefs (java-ant-2.eclass-remove-named-taskdefs.patch,1.21 KB, patch)
2011-10-21 08:31 UTC, Ralph Sennhauser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Sennhauser (RETIRED) gentoo-dev 2011-10-21 08:21:36 UTC
Created attachment 290429 [details, diff]
Allows to only remove named taskdefs

I came across a few occasions where removing only some taskdefs would have been helpful. Usually if there are tasks specific to creating distributables for different OSes.

The patch extends the functionality of java-ant_remove-taskdefs to remove taskdefs by name.
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2011-10-21 08:31:34 UTC
Created attachment 290431 [details, diff]
Allows to only remove named taskdefs

This is what you get for manual patch handling. Anyway cleaned up version.
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-10-21 11:06:11 UTC
Applied thanks. Guess we can add support for multiple specified names only when such need arises (or just call the method multiple times).
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2011-10-21 11:15:15 UTC
(In reply to comment #2)
> Applied thanks. Guess we can add support for multiple specified names only when
> such need arises (or just call the method multiple times).

Thank you too.

I also played with the idea to take multiple files besides multiple --name. Though haven't come across a use case so far. As you say can be extended if need arises.