Bug 32382 - 'ant' doesn't work if JAVA_HOME not set
Summary: 'ant' doesn't work if JAVA_HOME not set
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ernst de Haan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-29 23:20 UTC by dglo
Modified: 2002-04-13 12:36 UTC (History)
0 users

See Also:


Attachments
file.diff (355 bytes, patch)
2001-11-29 23:20 UTC, dglo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dglo 2001-11-29 23:20:00 UTC
	If the JAVA_HOME environment variable is not set, 'ant'
	does not work. The current port sets JAVACMD=javavm in
	the 'ant' shell script.  Almost immediately after this,
	the script checks to see if JAVACMD is executable, then
	fails because it can't execute "javavm".

Fix: Apply the following patch:
How-To-Repeat: 	Run 'env JAVA_HOME= ant', and it will print

		Error: JAVA_HOME is not defined correctly.
		  We cannot execute javavm
Comment 1 Pete Fritchman freebsd_committer freebsd_triage 2001-11-29 23:28:23 UTC
Responsible Changed
From-To: freebsd-ports->znerd

Over to maintainer
Comment 2 Ernst de Haan freebsd_committer freebsd_triage 2002-04-13 12:35:56 UTC
State Changed
From-To: open->closed

Fixed in jakarta-ant-1.4.1_1.