Login | Register
My pages Projects Community openCollabNet

Discussions > dev > compiler default

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

compiler default

Author edk
Full name Ed Korthof
Date 2000-12-14 14:19:55 PST
Message i'd like to change the build-*.sh scripts so that jikes is the default
(if it can be found) rather than javac. if a user has gone to the
effort of installing jikes, it seems like we should default to using
that unless they've explicitly asked us not to.

of course -- checking to see if jikes is installed is a bit of a pain --
because not all OSes are smart enough to send error messages from which
to STDERR. (i tested that out.) the attached patch is an attempt to be
somewhat general, and make life easier for our users -- if this is
reasonable, i'll apply the same idea to joist & helm's build scripts.

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.

i'd guess that the clause which starts 'if test -z "${TEST}" ; then '...
is unnessary -- the output from which should always be non-empty -- but
it also doesn't seem to hurt.

as always -- comments, questions, & criticism are welcome.

thanks --

ed
--
   +=-=+=-=+=-=+=-=+=-=​+=-=+=-=+=-=+=-=+=-=​+=-=+=-=+=-=+=-=
   | Ed Korthof | edk at collab dot net | 650-228-2527 |
   +=-=+=-=+=-=+=-=+=-=​+=-=+=-=+=-=+=-=+=-=​+=-=+=-=+=-=+=-=

« Previous message in topic | 1 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: