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 40623] New: - Default setting can crush ANT_HOME environment variable
Date Thu, 28 Sep 2006 02:37:08 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=40623>.
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=40623

           Summary: Default setting can crush ANT_HOME environment variable
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Wrapper scripts
        AssignedTo: dev@ant.apache.org
        ReportedBy: rpgoldman@sift.info


The ant shell script can overwrite the ANT_HOME environment variable with a
system default (instead of vice versa).  This happens because the shell script
will load /etc/ant.conf.
This can easily happen if the user installs a personal copy of ant (e.g.,
~/apache-ant-1.6.5), and there is also a shared copy of ant (e.g., /usr/share/ant).
The overwriting is very bad, because (1) the documentation says nothing about
the possibility.  I had ant experts bonking their heads on this problem and none
of them could figure it out.  (2) it can manifest itself in being unable to run
some operations because of getting the wrong ${ANT_HOME}/lib directory. (3) the
user has the right to expect that a variable explicitly and consciously set
(especially following documentation) should override a system default.  The
bin/ant shell script can crush this setting, because it loads environment
variables from /etc/ant.conf

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