Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2001 11:41:45 +0200 (CEST)
From:      Ernst de Haan <ernst@heinz.jollem.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/27073: devel/jakarta-ant doesn't work out of the box
Message-ID:  <200105040941.f449fjI42493@heinz.jollem.com>

next in thread | raw e-mail | index | archive | help

>Number:         27073
>Category:       ports
>Synopsis:       devel/jakarta-ant doesn't work out of the box
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 04 02:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ernst de Haan
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
Jollem Information Technology
>Environment:
System: FreeBSD heinz.jollem.com 4.3-RELEASE FreeBSD 4.3-RELEASE #3: Mon Apr 30 08:56:44 CEST 2001 root@heinz.jollem.com:/usr/src/sys/compile/HEINZ i386


	
>Description:
After installing devel/jakarta-ant the 'ant' command doesn't work out of the box, since it tries to call 'java' instead of 'javavm'.
>How-To-Repeat:
Install any JDK. This will install javavmwrapper too, making the command 'javavm' available. Install the devel/jakarta-ant port. Now try running '/usr/local/bin/ant'. You will get a warning telling you about setting JAVA_HOME, and then it will fail complaining about not being able to find 'java'.
>Fix:
The fix is very small. Just change the JAVACMD in the 'ant' shell script from 'java' to 'javavm'. This way the current JDK will be used to run Ant.

Here's the unified diff:


--- ant.orig	Fri May  4 11:36:55 2001
+++ ant	Fri May  4 11:35:07 2001
@@ -54,7 +54,7 @@
   fi
 else
   if [ "$JAVACMD" = "" ] ; then 
-    JAVACMD=java
+    JAVACMD=javavm
   fi
 fi
  
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105040941.f449fjI42493>