Mail Archive Home | enhydra List | June 2005 Index
| <-- Date Index --> | <-- Thread Index --> |
Hi Tom,
in Enhydra 6.x we are supporting EJOSA application structure!
'specification' layer, as set of application interfaces and matching factory
classes, is to be used exactly to split other application layers (data,
business and presentation) one from another. This means that other
application layers (data, business and presentation) should not depend
directly one from another but only from 'spec' layer. ANT build process is
generated with purpose to support general EJOSA idea and every application
layer, during its compilation process, can see only 'spec' application
layer.
Since you already have developed application, I will try to help you adapt
ant builds and complete migration process!
The main 'build.xml' basically contains the same targets and property
definitions as the one in Enhydra 5 appwizard. The only difference is that
actual job isn't done here but in ANT build files defined for every
application layer separately (placed in 'build' directory of every layer).
Target 'compile' defined in main (application) 'build.xml' will actually
invoke compilation of specification, data, business and presentation layer
which are defined in 'build-deploy.xml' files (one for every layer). Every
'build-deploy.xml' (every layer) has its own 'compile' target definition
which basically contains only 'javac' task call. By adding 'javac-classpath'
references to other application layers you should be able to compile your
project without any problem.
Note that (e.g.) compilation process of 'presentation' layer will be started
after 'business' layer compilation (order is determined in main buid.xml)
and therefore you should not reference 'presentation' classes directory from
'business' compile task.
This works if your presentation layer depends of business layer and business
layer depends of data layer (and not vice versa).
If, for example, your presentation and business layers depend mutually one
of each other my suggestion is to add 'business' layer source directory as
'javac-source' reference to presentation layer compile task (and comment
'javac' task call in business layer compilation target).
Regarding application WAR file creation, the new build process also contains
'makeWAR' target (as an old one) but it is not triggered during 'Ant
Rebuild' process. 'Ant Rebuild' process executes 'rebuild' target (main
application 'build.xml' file) which originally depends of 'clean' and 'make'
targets. Change 'rebuild' target dependencies from 'clean, make' to 'clean,
makeWAR' and, in your output (application/bin/application) directory, you
will get application war file (also).
Hope this works for you!
Regards,
Slobodan Vujasinovic
Enhydra Development Team
----- Original Message -----
From: <tomc224@xxxxxxxxxx>
To: <enhydra@xxxxxxxxxxxxx>
Sent: Monday, June 06, 2005 7:22 PM
Subject: [enhydra] Project migration from jbuilder 5.2 to eclipse 6.3
> I am having some difficulty moving from 5.2 using Jbuilder 8 w/kelp to 6.3
and eclipse w/kelp. I am not familiar with ant build process and have not
been able to get my project to compile. I have been using jbuilder/kelp for
the last 3 years but would like to move to 6.3 I first tried to create a new
project in eclipse,and built that to make sure it worked(it did) then tried
to move my files over from my old 5.2 project. Some of the directories are
a little different. What is the Specification folder used for? In
JBuilder I just did a re-build project and every thing builds fine. Using
eclipse when I do an 'Ant rebuild' under the enhydra tools menu it will not
build. It looks like it builds in a very specific order unlike jbuilder
which builds in the correct dependency order. I have alot of dependences
between the data and business classes. Do I need to rewrite to rearrange
these to make it build under ant? Also how do you get it to make the war
file. Both my test project and the included demos do not build the war file
using eclipse.
>
> Thanks for your help and keep up the great work.
>
> Tom
>
>
----------------------------------------------------------------------------
----
>
> --
> You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx
mailing list.
> To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx
> For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.