Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [joist-dev] Re: [helm-dev] compiler default

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

Re: [joist-dev] Re: [helm-dev] compiler default

Author Jon Stevens <jon at latchkey dot com>
Full name Jon Stevens <jon at latchkey dot com>
Date 2000-12-14 22:43:09 PST
Message on 12/14/2000 3:49 PM, "Manoj Kasichainula" <manoj at collab dot net> wrote:

> On Thu, Dec 14, 2000 at 02:19:55PM -0800, Ed Korthof wrote:
>> i'd like to change the build-*.sh scripts so that jikes is the default
>> (if it can be found) rather than javac.
>
>> of course -- checking to see if jikes is installed is a bit of a pain --
>
>> the logic is : if JAVAC is set, use that (whatever it is). if not, and
>> if JIKES is set, use jikes. if neither of these is true, use which to
>> look for jikes in the PATH; if we find it, use jikes. otherwise, use
>> javac.
>
> This sounds like a lot of work...
>
> How about just running $SANDBOX/bin/javac, and have that be a symlink
> or script pointing to the appropriate compiler?
>
>
How is that more work than just setting an environment variable?

Actually, I would simplify the above by simply doing the following:

look for JIKES=yes
if JIKES == yes
    use jikes
else
    look for JAVA_HOME
    if -z JAVA_HOME
        then fail
    else
        use JAVA_HOME/bin/javac

-jon

--
Honk if you love peace and quiet.

« Previous message in topic | 5 of 8 | Next message in topic »

Messages

Show all messages in topic

compiler default edk Ed Korthof 2000-12-14 14:19:55 PST
     Re: compiler default edk Ed Korthof 2000-12-14 14:24:15 PST
         Re: [helm-dev] Re: compiler default dlr Daniel Rall 2000-12-14 14:48:50 PST
     Re: [helm-dev] compiler default Manoj Kasichainula <manoj at collab dot net> Manoj Kasichainula <manoj at collab dot net> 2000-12-14 15:49:24 PST
         Re: [joist-dev] Re: [helm-dev] compiler default Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-12-14 22:43:09 PST
             Re: [joist-dev] Re: [helm-dev] compiler default deploy Deployment Pseudo-user 2000-12-14 22:48:49 PST
                 Re: [joist-dev] Re: [helm-dev] compiler default Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-12-14 22:59:02 PST
             Re: [helm-dev] compiler default edk Ed Korthof 2000-12-15 01:00:16 PST
Messages per page: