Maxime,

I'm attaching a lisp file which may or may not help you.  Basically, I
use a shell script to compute a classpath, and I run that shell script
in my jde mode hook to set the classpath appropriately.

I originally wrote this stuff on windows, but the version I'm sending
you I modified for linux.  If I remember correcly, which I may not,
the only change I had to make was from ";" to ":" as a classpath
seperator.  And I think if I were smarter I could have used the
jde-classpath-separator for that.

Note that what I'm attaching relies on a shell script "wmClasspath.sh"
being on the path.  What that shell script does is simply echo the
desired classpath to the console.  (it doesn't set environment
variables, it just echoes to stdout).

This isn't exactly what you're asking for, but feel free to borrow if
it helps.

-Dave

.emacsjde



Maxime Levesque <[EMAIL PROTECTED]> writes:

>  Here's some pseudo code that explains what I want to do :
> 
> 
>   (defun extract-env-params
> 
>      (let (setq script-process (launch-shell-script "setEnv.bat"))
> 
>        (setq jde-compile-option-classpath (extract-env-var "CLASSPATH"
> script-process))
> 
>        (setq jde-compile-option-directory (extract-env-var "CLASSES_DIR"
> script-process))
> 
>        (setq jde-compiler (extract-env-var "JAVA_COMPILER" script-process))
>      )
>   )
> 
> 
> 
>   'launch-shell-script' would return some kind of a process structure on
>   which one can call 'extract-env-var'

Reply via email to