Hi Lars,

Lars Degerstedt <[EMAIL PROTECTED]> writes:

> I wonder if it is possible to express the fact that I have multiple 
> sourcepaths using a regexp (since my enumeration varies). The
> expression
> I would like to handle is:
>
> */src/java
>
> or similar. I have not been able to find anything on this in the 
> documents. Is this possible?

It is not recommended by Paul, but you can edit your prj.el files by
hand and not use this awkward customization interface. You can then
use lisp code to set the project variables, like this:

(jde-set-variables
 '(jde-sourcepath (mapcar (lambda (path) 
                            (expand-file-name "src/java" path))
                    (directory-files))))

Just be sure to never save your project files with jde-save-project,
or you will lose your changes.

I have written myself a small module for a related purpose: Read the
dependencies from a maven project.xml file and build the
jde-global-classpath from this information. My .prj.el files now typically
look like this: 

(setq pom (pom-read-pom))
(jde-set-variables
 '(jde-global-classpath (pom-get-classpath pom))
 '(jde-project-name (pom-get-project-id pom))
 '(jde-sourcepath (quote ("./src/java" "./src/test"))))

I have, of course, also a prj.el file for all my default settings in
my top level source directory.

Ole
-- 
Ole Arndt                     http://www.sugarshark.com

Reply via email to