Change to jde-run-classpath-arg

Jeff Peck <[email protected]>
Newsgroups gmane.emacs.jdee.devel
Message-ID <[email protected]>
Not sure if this was a bug, or I'm just doing the 
wrong thing, (or if I just have an old release)
but my attempts to set jde-run-option-classpath in 
my prj.el:
 '(jde-run-option-classpath (quote 
("./dist/boot.jar" "./dist/conf"  )))
 
Failed due to the value not being a String (not 
"global" or "none")
But it seems that it really needs to be a list of 
string for this to work.
[and the docs and 'customize' method don't do 
anything to help/clarify/explain this]
 
So I added (stringp ...) as shown 
below:
 
 
(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
    (and (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)))))

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
jdee-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jdee-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.