Len | 1 Nov 2002 21:13

Re: jde Digest 1 Nov 2002 18:19:07 -0000 Issue 553

jde-digest-help <at> sunsite.dk wrote:
> Subject: [OT] Buffer loading magic?
> From: "James Higginbotham" <jhigginbotham <at> betweenmarkets.com>
> Date: Wed, 30 Oct 2002 17:22:05 -0600

> Can someone point me to something that would allow me to toggle between 
> the source and unit test for a class, if my directory structure is 
> usually something like:
> 
> src
>   com
>     mycompany
>       foo
>          Bar.java
> test
>   com
>     mycompany
>       foo
>          BarTest.java
> 
> …and my tests always end in 'Test.java'?
> 
> Just wondering if someone has done this or something similar. If found 
> an elisp snippet for C to header, but that assumes the same dir and I'm 
> not elisp literate enough to determine how best to mod the code.

Here's what I use on xemacs. I can't remember if I wrote these or if I 
based them on code posted here...

;; Swap between file in src hierarchy and matching one in test hierarchy
(Continue reading)

Galen Boyer | 3 Nov 2002 06:10

Re: jde Digest 1 Nov 2002 18:19:07 -0000 Issue 553

On Sat, 02 Nov 2002, len <at> reeltwo.com wrote:
> jde-digest-help <at> sunsite.dk wrote:
>> Subject: [OT] Buffer loading magic?
>> From: "James Higginbotham" <jhigginbotham <at> betweenmarkets.com>
>> Date: Wed, 30 Oct 2002 17:22:05 -0600
> 
>> Can someone point me to something that would allow me to toggle
>> between the source and unit test for a class, if my directory
>> structure is usually something like:
>> src
>>   com
>>     mycompany
>>       foo
>>          Bar.java
>> test
>>   com
>>     mycompany
>>       foo
>>          BarTest.java
>> …and my tests always end in 'Test.java'?
>> Just wondering if someone has done this or something
>> similar. If found an elisp snippet for C to header, but that
>> assumes the same dir and I'm not elisp literate enough to
>> determine how best to mod the code.
> 
> Here's what I use on xemacs. I can't remember if I wrote these or
> if I based them on code posted here...

Along these lines, is there any EJB remote, home and bean generation
help developed?
(Continue reading)

James Higginbotham | 3 Nov 2002 04:20

RE: jde Digest 1 Nov 2002 18:19:07 -0000 Issue 553

Galen,

> Along these lines, is there any EJB remote, home and bean generation
help developed?

Not sure if you are looking for a pure emacs solution or not, but
Xdoclet does wonders for allowing you to write the impl with javadoc
tags and it will gen the home, remote, descriptors for 1+ app servers,
value objects, and util lookup methods. I've used it for simple and
complex configurations and it works great! It even supports Struts and
Mbean generation as well, plus other people are doing their own
templates with it for custom project needs. 

http://xdoclet.sf.net

HTH,
James

--

-- 
Galen deForest Boyer
Sweet dreams and flying machines in pieces on the ground.

Janek Schwarz | 2 Nov 2002 17:54

Jde Ant Working Directory

Hi,

I'd like to ask for a customizable variable for specifying the directory
from which ANT should run. I need to run ANT from a specific directory as my
unit tests expect a certain directory structure. Currently, JDE changes to
the directory of the edited file and runs ANT from there which ruins my
tests.

Or am I missing something and I can achieve that with tweaking one of the
available variables?

TIA,
Janek.

Paul Kinnucan | 4 Nov 2002 05:25
Picon
Favicon

Re: jde Digest 1 Nov 2002 18:19:07 -0000 Issue 553

Galen Boyer writes:
 > 
 > Along these lines, is there any EJB remote, home and bean generation
 > help developed?
 > 

Hi Galen,

The latest version of the JDEE, 2.2.9beta12, has templates for 
generating EJB session and entity beans automatically. For
example, to generate a session bean, select JDE New->EJB->Session
from the Emacs File menu.

- Paul

Janek Schwarz | 4 Nov 2002 21:54

Jde Ant Program not normalized

Hi,

I just found that in JDEE 2.2.9beta12 the content of the jde-
ant-program variable does not get normalized. I.e., when I set 
the variable to "~/src/sico/sico-office/ant" on windows, JDEE 
tries to actually execute it as such, resulting in an error that 
the program "~/src/sico/sico-office/ant" can't be found.

Environment:
JDEE 2.2.9beta12
Emacs 21.1.1 on Windows

Janek.

Janek Schwarz | 4 Nov 2002 21:54

Jde Ant Program not normalized

Hi,

I just found that in JDEE 2.2.9beta12 the content of the jde-
ant-program variable does not get normalized. I.e., when I set 
the variable to "~/src/sico/sico-office/ant" on windows, JDEE 
tries to actually execute it as such, resulting in an error that 
the program "~/src/sico/sico-office/ant" can't be found.

Environment:
JDEE 2.2.9beta12
Emacs 21.1.1 on Windows

Janek.

Paul Kinnucan | 4 Nov 2002 22:30
Picon
Favicon

Jde Ant Program not normalized

Janek Schwarz writes:
 > Hi,
 > 
 > I just found that in JDEE 2.2.9beta12 the content of the jde-
 > ant-program variable does not get normalized. I.e., when I set 
 > the variable to "~/src/sico/sico-office/ant" on windows, JDEE 
 > tries to actually execute it as such, resulting in an error that 
 > the program "~/src/sico/sico-office/ant" can't be found.
 > 

Hi Janek,

Thanks for reporting this. I'll fix it ASAP.

Paul

Galen Boyer | 5 Nov 2002 08:08

Re: jde Digest 1 Nov 2002 18:19:07 -0000 Issue 553

On Sun, 3 Nov 2002, paulk <at> mathworks.com wrote:
> Galen Boyer writes:
>  >
>  > Along these lines, is there any EJB remote, home and bean
>  > generation help developed?
>  >
>
> Hi Galen,
>
> The latest version of the JDEE, 2.2.9beta12, has templates for
> generating EJB session and entity beans automatically. For
> example, to generate a session bean, select JDE New->EJB->Session
> from the Emacs File menu.

Hi Paul,

I never actually looked there.  I was trying to make this happen
by

    JDE -> Code Generation -> Wizards -> Implement Interface

Right now this drill isn't working correctly.  I'm sure its a
classpath issue.  Question.  You hardcoded these interface
implementations outside of the above menu choices to allow for a
user to customize what the defaults might be?  I think this is
probably pretty smart.  Things like a default ejbActivate and
ejbPassivate code would be shop specific. (BTW, your EntityBean
default doesn't have the incantation of "implements EntityBean"
in the generated code, very minor bug.)

(Continue reading)

Paul Kinnucan | 5 Nov 2002 07:59
Picon
Favicon

Jde Ant Program not normalized

Janek Schwarz writes:
 > Hi,
 > 
 > I just found that in JDEE 2.2.9beta12 the content of the jde-
 > ant-program variable does not get normalized. I.e., when I set 
 > the variable to "~/src/sico/sico-office/ant" on windows, JDEE 
 > tries to actually execute it as such, resulting in an error that 
 > the program "~/src/sico/sico-office/ant" can't be found.
 > 
 > Environment:
 > JDEE 2.2.9beta12
 > Emacs 21.1.1 on Windows
 > 

Hi Janek, 

I have second thoughts about making this change. I do not use Ant
and other contributors created and have been maintaining Ant.
I'd prefer to defer to them as to what the best way is to handle
this. There is a variable jde-ant-home that specifies the home
directory of ant. Shouldn't the path of the ant program be
jde-ant-home/jde-ant-program? Thus wouldn't it be better
to construct the path to the program as follows:

(expand-file-name 'jde-ant-program 
  (expand-file-name (substitute-in-file-name jde-ant-home)))\

- Paul

(Continue reading)


Gmane