On Mon, 12 Apr 2010, Rob Sargent wrote:

> Date: Mon, 12 Apr 2010 08:54:15 -0600
> From: Rob Sargent <robjsarg...@gmail.com>
> To: jdee-users@lists.sourceforge.net
> Subject: Re: [jdee-users] sample configurations
> 
> Does any see a technical problem with getting the class path from the
> maven project file (pom.xml)?  I have a rather deep stack with
> co-dependencies on other local projects.  I could paste the output from
> `mvn dependency:build-classpath` but would like some thing a tad more
> automagical.
>
>
>
> On 04/12/2010 01:25 AM, Tobias Gerdin wrote:
>> On Tue, 06 Apr 2010 00:47:35 +0200
>> "Jose A. Ortega Ruiz" <j...@gnu.org> wrote:
>>
>>>
>>> hi,
>>>
>>> i'm back to java development after some years, and, therefore, i'm
>>> dusting off my jde config of old and updating it to the new times. i'm
>>> very familiar with emacs, so i'm more or less managing to discover the
>>> correct settings for my needs (e.g. how to set jde-*-classpath so that
>>> most of jde's functionality works as expected); but i would really
>>> appreciate the chance to have a look at other people's customizations
>>> and prj.el files. a quick web search hasn't shown up much: any
>>> recommendations, pointers or people willing to share settings? (i'm
>>> using emacs 23, cedet 1.0pre7 and jde 2.4.0.1: would you recommend the
>>> development version instead?)
>>
>> Here's what I use for one project:
>>
>> (jde-project-file-version "1.0")
>> (jde-set-variables
>>  '(jde-global-classpath '("./output/debug-default-en/classes"
>>                           "./output/release-default-en/classes"
>>                           "./tools/lib/emulator.jar"
>>                           "./tools/lib/microemu-jsr-75.jar"))
>>  '(jde-sourcepath '("./src/com/domain/generic"
>>                     "./src/midlet"
>>                     "~/some/other/src/dir"))
>>  '(jde-run-working-directory "./")
>>  '(jde-run-executable "./tools/ant"))
>>
>> I believe it was initally created using `jde-create-new-project', and
>> then tweaked. Here I have used project-supplied 'ant' instead of the
>> system default one.
>>
>> I like the prj.el files concept, and especially the automatic
>> project switching feature when switching to a buffer part of another
>> project.
>>
>> Personally I use a somewhat hacked copy of the stable JDE 2.3.5.1 in
>> the Ubuntu repositories and Emacs 23. Works well.
>>
>> -Tobias

I've never messed with Maven, but I have written a script to write a
prj.el file from an Eclipse .project file once, and it was easy. I
believe I tried the same thing with an Oracle JDeveloper project, but
it had that special brand of Oracle obfuscation, and it was easier to
write the prj.el file manually.

You just need to read in all the paths from the file into a list. Once
you have that, the rest is straightforward.

Carlos

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
jdee-users mailing list
jdee-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jdee-users

Reply via email to