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/01/21 20:46:58 UTC

[Bug 58904] New: ant -version always reports version 1.7.1

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

            Bug ID: 58904
           Summary: ant -version always reports version 1.7.1
           Product: Ant
           Version: 1.9.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: notifications@ant.apache.org
          Reporter: zielot@gmail.com

* Download
http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.5-bin.tar.gz
* check sha1sum 
  - numbers match

* run the following
  echo $ANT_HOME 
  /opt/ant/apache-ant-1.9.5
  $which ant
  /opt/ant/apache-ant-1.9.5/bin/ant

  $ ant -version
  Apache Ant version 1.7.1 compiled on June 27 2008

  $ /opt/ant/apache-ant-1.9.5/bin/ant -version
  Apache Ant version 1.7.1 compiled on June 27 2008


* same problem with 
http://mirror.cc.columbia.edu/pub/software/apache//ant/binaries/apache-ant-1.9.6-bin.tar.gz
http://mirror.cc.columbia.edu/pub/software/apache//ant/binaries/apache-ant-1.9.6-bin.zip
http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz

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

[Bug 58904] ant -version always reports version 1.7.1

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

--- Comment #1 from zielot@gmail.com ---
$ java -jar /opt/ant/apache-ant-1.9.4/lib/ant-launcher.jar -version
Apache Ant(TM) version 1.9.4 compiled on April 29 2014

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

[Bug 58904] ant -version always reports version 1.7.1

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

--- Comment #3 from zielot@gmail.com ---
I deleted the contents of the other ant installations and now I get the proper
version so it works. However, this handling by the run script seems entirely
wrong to me: the ant script should not be overriding the user's specific
request to use a specific version. When I run 
/opt/ant/apache-ant-1.9.5/bin/ant -version
I am clearly not asking the script to search for all possible installations of
ANT and try to run the oldest version.

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

[Bug 58904] ant -version always reports version 1.7.1

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

--- Comment #2 from zielot@gmail.com ---
$ find /opt -iname "ant"
/opt/ant
/opt/ant/apache-ant-1.9.4/manual/api/org/apache/tools/ant
/opt/ant/apache-ant-1.9.4/bin/ant
/opt/app/oracle/product/11.2.0/dbhome_2/oc4j/ant
/opt/app/oracle/product/11.2.0/dbhome_2/oc4j/ant/bin/ant
/opt/weblogic/oracle_common/modules/org.apache.ant_1.8.4/bin/ant
/opt/weblogic/oracle_common/modules/org.apache.ant_1.7.1/bin/ant
/opt/weblogic/wlserver/server/lib/ant
/opt/weblogic/wlserver/plugins/maven/com/oracle/weblogic/ant
/opt/ATG/ATG11.1/CIM/plugins/Base/ant

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