Re: Should jde-run-option-classpath
<[email protected]> Fri, 4 May 2007 19:15:20 -0700 (PDT)
| Newsgroups | gmane.emacs.jdee |
|---|---|
| Message-ID | <[email protected]> |
--- Andy Watson <[email protected]> wrote: > > Hello JDE users, > > I've been attempting to use the > jde-run-option-classpath value to > control how an application is executed via jde-run. > > I'm assuming (perhaps a bad thing) that the > jde-run-option-classpath > should be a list of strings. If however you look at > jde-run-classpath-arg, the first thing it does is a > string= to test to > see if this variable is set to "global". Of course, > this fails if > jde-run-option-classpath is a list with a stringp > error. > I added a couple of stringp checks in the function jde-run-classpath-arg and it now works as expected. (defmethod jde-run-classpath-arg ((this jde-run-vm)) "Returns the classpath argument for this vm." (let ((classpath (if jde-run-option-classpath (if ( and (stringp jde-run-option-classpath) (string= jde-run-option-classpath "global") ) jde-global-classpath (unless ( and (stringp jde-run-option-classpath) (string= jde-run-option-classpath "none")) jde-run-option-classpath)))) (symbol (if (and jde-run-option-classpath (stringp jde-run-option-classpath) (string= jde-run-option-classpath "global")) 'jde-global-classpath 'jde-run-option-classpath))) (if classpath (list "-classpath" (jde-build-classpath classpath symbol)))))