You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2016/12/16 02:30:40 UTC

[Bug 60485] New: Mac Apache Ant version 1.8.2 instead of 1.9.6

https://bz.apache.org/bugzilla/show_bug.cgi?id=60485

            Bug ID: 60485
           Summary: Mac Apache Ant version 1.8.2 instead of 1.9.6
           Product: Ant
           Version: 1.9.6
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: notifications@ant.apache.org
          Reporter: lain80@gmail.com
  Target Milestone: ---

I've downloaded the last apache ant version on my Mac but the version seems the
old one. Any idea?

==== CODE ====
myMac:~ mauri$ export ANT_HOME=/Users/mauri/Downloads/apache-ant-1.9.6
myMac:~ mauri$ export CLASSPATH=$ANT_HOME/lib:$CLASSPATH
myMac:~ mauri$ export PATH=$ANT_HOME/bin:$PATH
myMac:~ mauri$ ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
myMac:~ mauri$ /Users/mauri/Downloads/apache-ant-1.9.6/bin/ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
myMac:~ mauri$ which ant
/Users/mauri/Downloads/apache-ant-1.9.6/bin/ant
myMac:~ mauri$ 
myMac:~ mauri$ brew install ant
==> Downloading
https://homebrew.bintray.com/bottles/ant-1.9.7.el_capitan.bottle.tar.gz
######################################################################## 100,0%
==> Pouring ant-1.9.7.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/ant/1.9.7: 1,611 files, 34.9M
myMac:~ mauri$ 
myMac:~ mauri$ ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
myMac:~ mauri$ 
myMac:~ mauri$ ./Downloads/apache-ant-1.9.6/bin/ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
myMac:~ mauri$ uname -a
Darwin myMac 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016;
root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64

------- Ant diagnostics report -------
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.8.2 in
file:/Library/Java/Extensions/selenium-html-runner-3.0.1.jar

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
ant.java.version: 1.7
Is this the Apache Harmony VM? no
Is this the Kaffe VM? no
Is this gij/gcj? no
ant.core.lib: /Library/Java/Extensions/selenium-html-runner-3.0.1.jar
ant.home: /usr/local/Cellar/ant/1.9.7

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/local/Cellar/ant/1.9.7
No such directory.

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: /Users/mauri
No such directory.
I've tried to uninstall and install ANT again from brew, but the problem is
still the same

myMac:OrgSight mauri$ brew uninstall ant
Uninstalling /usr/local/Cellar/ant/1.9.7... (1,611 files, 34.9M)
myMac:OrgSight mauri$ brew install ant
==> Downloading
https://homebrew.bintray.com/bottles/ant-1.9.7.el_capitan.bottle.tar.gz
Already downloaded:
/Users/mauri/Library/Caches/Homebrew/ant-1.9.7.el_capitan.bottle.tar.gz
==> Pouring ant-1.9.7.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/ant/1.9.7: 1,611 files, 34.9M
myMac:OrgSight mauri$ which ant
/usr/local/bin/ant
myMac:OrgSight mauri$ ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
myMac:OrgSight mauri$ /usr/local/Cellar/ant/1.9.7/bin/ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

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

[Bug 60485] Mac Apache Ant version 1.8.2 instead of 1.9.6

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60485

Mauri <la...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #2 from Mauri <la...@gmail.com> ---
Stefan, thanks for your note.
I'm still trying to understand the reason behind that but your insight helped
me to figure out my issue.

myMac:~ mauri$ /Users/mauri/Downloads/apache-ant-1.9.6/bin/ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
myMac:~ mauri$ cd /Library/Java/Extensions
myMac:Extensions mauri$ l
total 30536
-rw-r--r--@ 1 root  wheel    15M  4 Dez 12:12 selenium-html-runner-3.0.1.jar
myMac:Extensions mauri$ mv selenium-html-runner-3.0.1.jar ~/
myMac:Extensions mauri$ which ant
/Users/mauri/Downloads/apache-ant-1.9.6/bin/ant
myMac:Extensions mauri$ ant -version
Apache Ant(TM) version 1.9.6 compiled on June 29 2015

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

[Bug 60485] Mac Apache Ant version 1.8.2 instead of 1.9.6

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60485

--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
There seems to be a different version of Ant installed globally on your
machine. The Ant wrapper script sources some files from /etc if present, so the
global installation may leak into your setup regardless. I guess the key is
"core tasks     : 1.8.2 in
file:/Library/Java/Extensions/selenium-html-runner-3.0.1.jar" - whatever has
put Selenium there, it takes precedence.

There is no reason to add $ANT_HOME/lib to the CLASSPATH (this won't have any
effect anyway). You should probably unset CLASSPATH altogether ant try again.

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