Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 20160 invoked from network); 9 Aug 2002 07:38:10 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Aug 2002 07:38:10 -0000 Received: (qmail 20115 invoked by uid 97); 9 Aug 2002 07:38:42 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 20099 invoked by uid 97); 9 Aug 2002 07:38:42 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 20087 invoked by uid 98); 9 Aug 2002 07:38:41 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3D5370E0.2020208@sun.com> Date: Fri, 09 Aug 2002 00:36:00 -0700 From: Patrick Luby User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1b) Gecko/20020722 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: cvs commit: jakarta-ant/src/script ant antRun References: <20020808170748.99636.qmail@icarus.apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Stefan, Stefan Bodewig wrote: > On 8 Aug 2002, wrote: > > >> 1. Removes the extraneous "cd `dirname $PRG`" line >> >> 3. Invoke Java using the "exec" shell command. > > > Has this been tested under Cygwin? Not Cygwin. But I have tried Solaris, Linux, and Mac OS X. > > I'm not sure whether exec works as expected there and cannot test it, > that's why I've kept away from that patch. > We have been using "exec" in the Tomcat 4.x scripts for quite some time now without ill effect. > Also > > >> @@ -167,7 +165,6 @@ >> if $cygwin ; then >> JIKESPATH=`cygpath --path --windows "$JIKESPATH"` >> fi >> - ANT_OPTS="$ANT_OPTS -Djikes.class.path=$JIKESPATH" >> fi > > > > >> -Djikes.class.path="$JIKESPATH" $ANT_OPTS > > > changes things a bit. In the old version jikes.class.path would be > left unset if the environment variable JIKESPATH was unset (and you > are not on MacOS X). Now this property will be always defined, but > may get an empty value. > I can generate a reversion of this part of the patch. However, there is a bit of a problem. Previously, -Djikes.class.path=$JIKESPATH was appended onto $ANT_OPTS and then $ANT_OPTS is included in the Java command. The problem is that if $JIKESPATH contains spaces, the above will break into 2 arguments: -Djikes.class.path=... and ... The only way around this is to explicitly put -Djikes.class.path="$JIKESPATH" in the Java command. > There certainly is a difference between a property that is not set and > an empty one (see if/unless attributes) and the jikes compiler adapter > behaves differently as well: > > String jikesPath = System.getProperty("jikes.class.path"); > if (jikesPath != null) { > classpath.append(new Path(project, jikesPath)); > } > > which may lead to adding an empty entry to the classpath before > invoking jikes. Looking at the o.a.t.a.types.Path code, an empty String looks like it will turn into the current working directory :(. This is probably why I never found a problem with this change. > > Could you please revert at least this last part of the patch? I will post a patch in a few minutes that reverts the JIKESPATH always == "" problem. Note, however, that Mac OS X will not have JIKESPATH set like in the old script. This is because since the Mac OS X official release, the compiler classes are included in the bootstrap classpath. I believe that the setting of JIKESPATH for Mac OS X is leftover from the pre-release versions of Mac OS X. Patrick -- ________________________________________________________________ Patrick Luby Email: patrick.luby@sun.com Sun Microsystems Phone: 408-276-7471 901 San Antonio Road, USCA14-303 Palo Alto, CA 94303-4900 ________________________________________________________________ -- To unsubscribe, e-mail: For additional commands, e-mail: