https://bz.apache.org/bugzilla/show_bug.cgi?id=62360
Bug ID: 62360
Summary: Allow listing of targets in build script that's
consumable via pipes/redirects
Product: Ant
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: Other
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Howdy folks,
I've been working on some autocomplete stuff for my own personal use. The one
related to this project is listing targets in an ant build file. I'm familiar
with `ant -p build.xml`, but it prints out annoying headers, etc etc and I'd
like something I could pipe to other scripts (similar to how `ls` works, for
example). Right now I'm doing this:
# Currently returns all Main Targets, but no Other Targets.
ant -p -debug build.xml | sed -nE 's/^\\s(\\S+)\\s\\s+\\S+.*$/\1/p'
but without the description info for Other Targets, I can't come up with a good
regex to select those as well. If you point me at where this sort of thing
might be implemented, I'd be happy to take a stab at it myself.
Thanks!
-Kyle
--
You are receiving this mail because:
You are the assignee for the bug.