Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 21355 invoked by uid 500); 10 Jul 2001 17:37:03 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 20911 invoked from network); 10 Jul 2001 17:36:58 -0000 Date: Tue, 10 Jul 2001 18:36:51 +0100 From: Stuart Roebuck Content-Type: text/plain; format=flowed; charset=us-ascii Subject: [PATCH] Re: C2 - cannot compile Cc: vgritsenko@hns.com, jeremy@media.demon.co.uk To: cocoon-dev@xml.apache.org X-Mailer: Apple Mail (2.388) In-Reply-To: Mime-Version: 1.0 (Apple Message framework v388) Content-Transfer-Encoding: 7bit Message-Id: X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Tuesday, July 10, 2001, at 02:55 pm, Jeremy Quinn wrote: > At 9:28 AM -0400 9/7/01, Vadim Gritsenko wrote: >> Can we add check for MacOS X to ant script, so other people don't have >> similar problem? > > That would be a nice idea. > > The problem may be about to go away, though I am not sure. Apple have just > released a Developer Preview of Java 1.3.1 for MacOS X, maybe it has this > switch. > The switch doesn't appear to be there at the moment... > Meanwhile, if you want to apply the patch to bin/ant there is an > environment variable in MacOS X, $OSTYPE=macos. Can I suggest the following patch to bin/ant for Mac OS X at the moment (replacing last line): if [ $( expr $OSTYPE : '^[dD]arwin.*' ) > 0 ]; then $JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@" else $JAVACMD -classic -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@" fi On Mac OS X 10.0.4 the value of OSTYPE in the /bin/sh shell appears to be "darwin1.0", but it is "Darwin1.3" in Bash and "macos" in csh and tcsh! Stuart. ------------------------------------------------------------------------- Stuart Roebuck stuart.roebuck@adolos.com Lead Developer Java, XML, MacOS X, XP, etc. ADOLOS --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org