Summary: | ant -version always reports version 1.7.1 | ||
---|---|---|---|
Product: | Ant | Reporter: | zielot |
Component: | Core | Assignee: | Ant Notifications List <notifications> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 1.9.6 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
zielot
2016-01-21 19:46:58 UTC
$ 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 $ 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 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. |