>  Is there a way to define a variable in prj.el and
> refrence that in the prj.el file? For example,
>  set project_home = c:/someproject
>
> then in the classpath {project_home}/classes.

I do that in my prj.el this way:

(jde-project-file-version "1.0")
(setq
  wpath
  (replace-regexp-in-string "[a-zA-Z]:/[^/]+\\(/.*\\)" ""
(jde-normalize-path ".") nil nil 1))
(jde-set-variables
 '(jde-project-name "MyProject")
 '(jde-compile-option-directory wpath)
 '(jde-compile-option-sourcepath (list "./" (concat wpath "/src")))
 '(jde-db-source-directories (list "./" (concat wpath "/src")))
 '(jde-global-classpath (list "./" wpath (concat wpath
"/extlib/classes12.zip") (concat wpath "/extlib/Acme.jar")))
 '(jde-sourcepath (list "./" (concat wpath "/src")))
 '(jde-run-application-class "com.baa.myproject.MyProject"))

Don't try to analyze why I'm doing this -- this probably pre-dates the
current relative path support in JDE and could very well be entirely
unnecessary.  The point really is I set "wpath" to what I want it to be and
then use that value as part of my other JDE variables.

Regards,

Martin

----
Martin Dickau, ByAllAccounts


Reply via email to