From: Leo S. M. <leo...@gm...> - 2009-03-12 15:55:59
|
On Thu, Mar 12, 2009 at 12:06 PM, Avi Flax <av...@ar...> wrote: > On Wed, Mar 11, 2009 at 21:56, Zhang Cheng <czh...@gm...> wrote: > > > This enhancement is indeed useful to me as well. Would you please post > > the diff of your launch script? > > Here you go, diff based on a Mac OS X install of 2.5b2: > > 99a100,106 > > # ----- BEGIN Copied from Groovy by Avi Flax ----- > > if [ "$1" = "-cp" -o "$1" = "-classpath" ] ; then > > CP=$CP:$2 > > shift 2 > > fi > > # ----- END Copied from Groovy by Avi Flax ----- AFAICS, if both CLASSPATH and -cp options are used, the patch will "merge" both, with -cp taking precedence. This is different from what java -cp does (i.e completely overriding CLASSPATH) Is this intentional? How does it compare with what other JVM languages do? -- Leo Soto M. http://blog.leosoto.com |