ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55785] Always show verison 1.9.0
Date Thu, 05 Dec 2013 05:38:01 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55785

--- Comment #6 from Stefan Bodewig <bodewig@apache.org> ---
Ah, yes, that may work:

stefanb@brick:/tmp$ cat version.xml 
<project>
  <whichresource property="versionloc"
                 resource="org/apache/tools/ant/version.txt"/>
  <echo>Version read from ${versionloc}</echo>
</project>
stefanb@brick:/tmp$ ant -f version.xml 
Buildfile: /tmp/version.xml
     [echo] Version read from
jar:file:/home/stefanb/dev/ASF/ant-core/trunk/bootstrap/lib/ant.jar!/org/apache/tools/ant/version.txt

BUILD SUCCESSFUL
Total time: 0 seconds

I.e. have Ant tell you where it reads its version from.

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

Mime
View raw message