ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54797] New: Property redefinition should cause an error
Date Wed, 03 Apr 2013 15:56:43 GMT

            Bug ID: 54797
           Summary: Property redefinition should cause an error
           Product: Ant
           Version: 1.8.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
    Classification: Unclassified

Created attachment 30143
Example build file to reproduce the issue

Property redefinition should cause an error.

See attached build file.

When I run it:

$ ant                                                       (03/04 16:52)
Buildfile: /home/david/tmp/build.xml

     [echo] value

Total time: 0 seconds

Ideally the build would fail because I've illegally attempted to re-define a
property. A more likely scenario for this sort of thing is the use of a
property inside a macro or a target which is called twice, where the <local>
element needs to be used to avoid fixing permanently to the initial value.

Running ant in verbose mode does print 'Override ignored for property "p1"',
but I think this deserves to be an error - or at the very least a visible
warning in normal mode.

You are receiving this mail because:
You are the assignee for the bug.

View raw message