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 4752] New: - Make Ant report an error when an undefined property is referenced.
Date Thu, 08 Nov 2001 19:53:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4752>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4752

Make Ant report an error when an undefined property is referenced.

           Summary: Make Ant report an error when an undefined property is
                    referenced.
           Product: Ant
           Version: 1.4.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: ian_macdonald@securecomputing.com


It would be nice if Ant could report an error and stop the script if it 
encounters a reference to an undefined property.  Currently, scripts that 
reference an undefined property can silently fail due to an undefined property.

For example:

<mkdir dir="${directory.dir}"/>

will create a directory named '${directory.dir}' if directory.dir was not 
defined.  This is not what a script writer would have intended.

I realize you could use a separate target to validate the existance of a 
property and fail if it is not defined.  However, this extra step should not be 
needed and references to undefined properties should always be errors.

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


Mime
View raw message