ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51931] New: complete-ant-cmd.pl incorrectly suggesting text from the build file description as ant targets
Date Fri, 30 Sep 2011 19:20:55 GMT
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.

Mime
View raw message