RE: Should jde-run-option-classpath

"Andy Watson" <[email protected]> Fri, 4 May 2007 21:06:19 -0700
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
Thanks for the fast response everyone.  If I were less lazy, I should have given you
a patch.  Next time: there are definitely a few things I want to fix, like comment generation 
for templated classes, and annotated functions ;-)

Much appreciated,
Andy
--

-----Original Message-----
From: Suraj Acharya [mailto:[email protected]]
Sent: Fri 5/4/2007 7:25 PM
To: Andy Watson
Cc: [email protected]
Subject: Re: Should jde-run-option-classpath
 
Looks like you've found a bug.

Replace all the `string=' tests with `equal', like this:

(defmethod jde-run-classpath-arg ((this jde-run-vm))
  "Returns the classpath argument for this vm."
  (let ((classpath
	 (if jde-run-option-classpath
	      (if (equal jde-run-option-classpath "global")
		  jde-global-classpath
		(unless (equal jde-run-option-classpath "none")
		  jde-run-option-classpath))))
	(symbol
	 (if (and jde-run-option-classpath
		  (equal jde-run-option-classpath "global"))
	     'jde-global-classpath
	   'jde-run-option-classpath)))
    (if classpath
	(list
	 "-classpath"
	 (jde-build-classpath
	  classpath symbol)))))


On 5/4/07, 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.
>
> What should I do?  My workaround is to use jde-global-classpath for the
> time being.
>
> Thanks,
> Andy
> --
>