You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2011/09/30 21:20:55 UTC
DO NOT REPLY [Bug 51931] New: complete-ant-cmd.pl incorrectly
suggesting text from the build file description as ant targets
https://issues.apache.org/bugzilla/show_bug.cgi?id=51931
Bug #: 51931
Summary: complete-ant-cmd.pl incorrectly suggesting text from
the build file description as ant targets
Product: Ant
Version: 1.8.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Wrapper scripts
AssignedTo: notifications@ant.apache.org
ReportedBy: pilf_b@yahoo.com
Classification: Unclassified
complete-ant-cmd.pl should ignore the description section of the "ant -p"
output. Currently complete-ant-cmd.pl will incorrectly suggest non-targets
that it incorrectly parsed out of the build file description.
For example, take the following ant -p output:
$ ant -p
Buildfile: build.xml
Description of build file.
Some indented description text.
Main targets:
target1 Description of target1
target2 Description of target2
Then, complete-ant-cmd.pl will parse out the text "Some" as a build target,
like this:
$ ant <TAB><TAB>
Some target1 target2
Expected result: I would expect the tab completion to only show the targets
that appear after the "Main targets:" section begins. Anything before "Main
targets:" should be ignored.
For reference, the buildfile used in the example above is:
<?xml version="1.0" encoding="UTF-8"?>
<project name="foo">
<description>
Description of build file.
Some indented description text.
</description>
<target name="target1" description="Description of target1"/>
<target name="target2" description="Description of target2"/>
</project>
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 51931] complete-ant-cmd.pl incorrectly suggesting text from the
build file description as ant targets
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51931
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |1.9.5
--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
fixed with Christian Schmidt's patch for bug 57542 with git commit 33d20f4
--
You are receiving this mail because:
You are the assignee for the bug.