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 2008/06/20 17:59:28 UTC
DO NOT REPLY [Bug 45245] New: Startup script produces error on
Cygwin if JAVA_HOME is undefined
https://issues.apache.org/bugzilla/show_bug.cgi?id=45245
Summary: Startup script produces error on Cygwin if JAVA_HOME is
undefined
Product: Ant
Version: 1.7.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: minor
Priority: P3
Component: Wrapper scripts
AssignedTo: notifications@ant.apache.org
ReportedBy: gordon.prieur@sun.com
The startup script in ant 1.7 uses the cygpath program to convert
JAVA_HOME several times. The 1st time it checks that JAVA_HOME is
set before calling cygpath, but the 2nd time it doesn't.
As a result, the 2nd time always gets the warning
cygpath: can't convert empty path
It looks like this line can probably be removed (line 256 in
ant 1.7.0) because the ant script uses JAVACMD and its already
been set (I didn't test this, although I did test that setting
JAVA_HOME resolved the problem).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45245] Startup script produces error on Cygwin if
JAVA_HOME is undefined
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45245
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.8.0
--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2008-08-08 06:24:15 PST ---
Since ANT_HOME was guarded in the first section as well, I applied the change
to ANT_HOME and JAVA_HOME.
There may be other processes using JAVA_HOME that are spawned by Ant, I think
that's why we rewrite JAVA_HOME once again, so the change is needed even though
JAVACMD is used.
fixed in svn revision 683961 (change is documented in revision 683963).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.