Menu

#89 Wrong classpath settings for EJB build files

lomboz_v2.1
open
nobody
EJB wizard (22)
5
2003-11-14
2003-11-14
No

Hi,
just noticed a subtle error with the EJB Wizard ...

I'm running
eclipse-SDK-2.1.2-linux-gtk (latest Release build)
lomboz-2.1.1
JBoss-3.2.3RC1
Sun JDK-1.4.2_02

on a Debian GNU/Linux testing/unstable machine.

To keep the (Eclipse) installation clean, i've put all the plugins
into a separate directory, which is referenced via an entry in the
'links' directory.
Eclipse is clever enough to realize this and automagically adds
another classpath variable which points to this directory (e.g.
'ECLIPSE_HOME_SOME_LINK '/some_directory/eclipse' in
addition to the standard 'ECLIPSE_HOME' '/eclipse_installation').

The build files for generating the EJB class files do not honour
this, especially 'ejbGenerate.xml' only has one fileset entry
pointing to '${eclipse.home}/plugins', with 'eclipse.home' being
defined in 'build.properties'.
Just adding another fileset entry solves the problem entirely!

I'm not quite sure what the best solution might be, but by
defining a LOMBOZ_INSTALLATION_DIRECTORY variable and
using only relative paths it'd be easy to avoid trouble.

Steffen Elste

Discussion


Log in to post a comment.

MongoDB Logo MongoDB