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 42715] New: - ant.version property lost in imported build scripts
Date Thu, 21 Jun 2007 15:04: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=42715>.
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=42715

           Summary: ant.version property lost in imported build scripts
           Product: Ant
           Version: 1.7.0
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build Process
        AssignedTo: dev@ant.apache.org
        ReportedBy: rbaker@bea.com


The ant.version property is unset in imported build scripts using ANT 1.7. I
have a build file that uses an import "<import file="newBuild.xml"/>". In this
file, we do a check to see if the user is using the correct version of ANT using
the following:

    <condition property="ant.version.okay">
        <or>
          <contains string="${ant.version}" substring="1.6"/>
          <contains string="${ant.version}" substring="1.7"/>
        </or>
    </condition>

The property was never set, so I checked to see if the property was set by doing
this:
<echo>
	ANT VERSION: ${ant.version}
</echo> 

And this is exactly what appeared on the output:

ANT VERSION: ${ant.version}

So, it looks like the property gets lost somehow. I tested this on two different
boxes, so I'm pretty sure this is a bug.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message