ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27722] New: - Project description contains target description
Date Tue, 16 Mar 2004 21:38:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27722>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27722

Project description contains target description

           Summary: Project description contains target description
           Product: Ant
           Version: 1.6.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: danson@germane-software.com


A thread discussing this is has been on the ant user list for the past few days.
Suppose a target has a <description> child element. Then running 'ant
-projecthelp' will show that description as part of the project description, not
as part of the target description. Note that <description> is a valid child
element of target. I have two patches to fix this:

1. In org.apache.tools.ant.types.Description.java, it explicitly looks through
ALL targets for <description> elements and adds any text contained in those
elements to the project description. The patch limits this to the implicit
target only.

2. In org.apache.tools.ant.Target.java, the description can only be set as an
attribute. The patch appends any text contained in child <description> elements
to any text contained in the description attribute.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message