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 42263] New: - built-in property ${ant.version} not set in a call with subant
Date Thu, 26 Apr 2007 14:01:04 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=42263>.
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=42263

           Summary: built-in property ${ant.version} not set in a call with
                    subant
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: stephan.classen@adnovum.ch


when calling subant without inheritall="true" ant.version is not set.

example

top level build file:
<target name="test1">
   <echo message="${ant.project.name}" />
   <echo message="${ant.version}" />
   <subant target="test" buildpathref="subpath" />
</target>

and in the build file specified by the path "subpath":
<target name="test1">
   <echo message="${ant.project.name}" />
   <echo message="${ant.version}" />
</target>



The output of "ant test" is:

test project
Apache Ant version 1.7.0 compiled on December 13 2006
test project subcomponent
${ant.version}

-- 
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