DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page "Special" folder layout for an EAR application - Migration from JBuilder
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default "Special" folder layout for an EAR application - Migration from JBuilder - 11-05-2008, 01:02 PM

Hello to all.

We are migrating a huge legacy JBuilder project structure to Eclipse, and I have the task of "mimmicking" the old deploying structure with Eclipse. The app. server is JBoss.

First of all, our app. current deployment is an uncompressed EAR structure, like this:

miapp.ear
\Help - > uncompressed WAR structure)
\Client -> uncompressed WAR structure with JNLP files and app. Client jars
\ejb -> EJB jars
\Lib -> library jars for EJB, divided into some folders for own libs, third party libs, etc.

\****-INF


We need to maintain the same structure for easy client updating and developing (we need to debug in JBoss, and waiting for a huge EAR build is a real pain ! :-) ), and I couldn't find any option - public or "obscure" - to do the deploying as we used to do.

¿Is there any parameter for preventing the EAR/WAR builder to compress the files, and making only the structure?

¿Can I specify the deployment structure directories as above? ¿Editing the XML config files like application.xml, perhaps? ¿The builders will deploy the files in the specified folders?

Greetings from Spain, and sorry for my bad English :-P.
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default First step - Uncompressed deployment of EAR files. - 11-13-2008, 01:01 PM

Hello again.

After some investigations, we altered the Ant script for jBoss Deployment:

<Eclipse root>/plugins/org.eclipse.jst.server.generic.jboss_XXX\buildfile s\jboss323.xml

We edited the script and commented the <jar> and <copy file> tasks,and we introduced a new <copy> task :

<move todir="${server.publish.dir}/${module.name}.ear">
<fileset dir="${module.dir}"/>
</move>

To keep right the undeploy targets, we changed the <delete file> task for a <delete dir> one :

<delete dir="${server.publish.dir}/${module.name}.war" failonerror="false"> </delete>

This "hack" works on WAR deployment too.

Looking at the custom layout problem, if you edit the project settings file .settings/org.eclipse.wst.common.component and change the deploypath label value to, for example, /ejb, the deployer saves EJB jars in this directory, but library files from utility projects remains in the root directory of the EAR.

¿Some documentation of the file out there ?
Reply With Quote
Reply

Tags
eclipse ear

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse CDT "An internal error occurred during: "Launching"" aluminumpork Eclipse 1 10-08-2008 05:48 AM
Eclipse Debug error - "Process Model Delta" bboyle18 Eclipse 2 09-02-2008 08:20 PM
Error:"Cannot complete the request." while adding plugins using an update site. amit123solanki Eclipse 0 07-28-2008 08:33 AM
Jboss server hangs in state "starting" mikeeprice Eclipse 0 07-19-2008 09:59 AM
How to supress html validation errors in "target" folder thebugslayer Eclipse 0 02-27-2008 09:06 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com