MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tkofford
Post subject: Define custom task for "exploded deployment" proce  PostPosted: Aug 26, 2009 - 03:07 PM



Joined: Jan 31, 2008
Posts: 6

It would be great to define a custom task during the "exploded deployment" process. Something like use an alternate web.xml file prior to deploying. This could be very valuable in developing portlets, since portlets are usually deployed to production via different methods.

We use the exploded deployment process a lot during development on our local machines, but when we migrate to other platforms we use various other techniques depending on the application and platform.

One of these "other" techniques is for deploying portlets to uportal. Uportal has a very specific way to deploy portlets which, when given a portlet *.war file, will extract the *.war file in the web containers webapps directory and re-write the web.xml file, adding in (servlet) entries for portlets depending on the version of the portlet container (pluto) that it is using. Therefore, when we commit code to our source code repository, we don't want to muck it up with (servlet) portlet definitions because this can/will change over time. Having a way to use an alternate web.xml file during exploded deployment would solve this problem.

Even though my scenario is very specific, I could see a custom "exploded deployment" task being extremely useful in the generic sense. In addition to using alternate files, mabe have some simple variable substitution of database connection strings and logging levels. This is something that everyone that migrates code up platforms does already, and the "exploded deployment" could be used in those migrations too.

I hope that the MyEclipse project team will consider this request, and I'd be happy to explain this in further detail if necessary.

Thanks,
Todd Kofford
tkofford@ku.edu
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Define custom task for "exploded deployment" p  PostPosted: Aug 26, 2009 - 08:11 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

Todd,
This is a very interesting request that we've gotten from time to time and the difficulty for us on this end is to normalize it into a common set of enhancements that everyone can use. Can you give me a detailed scenario of what exactly you were looking for. It would be very helpful in understanding the flow better.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
valheru
Post subject: RE: Define custom task for "exploded deployment" p  PostPosted: Sep 01, 2009 - 11:42 AM
Registered Member
Registered Member


Joined: May 27, 2008
Posts: 3

This would be really useful for me too, especially the string substitution as we need to deploy to development, demo and live systems. We've had to fall back to Ant / Maven tasks instead of using the servers window for this.

I think an extra screen on the deployment configuration is all that would required for this. On this screen could be two lists - one to enter a list of files to apply substitutions to, and another list to enter a selection of .properties files within the project which contain the strings to use for various deployment scenarios.

When creating a WAR file it could then ask which of the .properties file to load the strings from.

e.g.
In hibernate.cfg.xml we could specify
<property name="connection.datasource">@@datasource@@</property>

Then configure the list of .properties files as:

#File: dev.properties
datasource=java:comp/env/jdbc/oraDev
loglevel=info

#File: demo.properties
datasource=java:comp/env/jdbc/oraDemo
loglevel=debug

#File: live.properties
datasource=java:comp/env/jdbc/oraLive
loglevel=error

Here's a couple of mockups as an example of how it could work:

Somewhere in configuration of a deployment:
Image

After clicking redeploy in server window:
Image

Alternatively the option to run an Ant or Maven task before deployment would be useful too.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Define custom task for "exploded deployment" p  PostPosted: Sep 02, 2009 - 12:59 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

valheru,
We appreciate you posting these mockups for us. I have already forwarded this request to the executive team. I hope we can get this feature in soon for our users.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
tkofford
Post subject:   PostPosted: Nov 04, 2011 - 09:54 PM



Joined: Jan 31, 2008
Posts: 6

Quote:
I hope we can get this feature in soon for our users.


It's been over 2 years since this was requested. I guess "Hope" doesn't work for feature requests.

_________________
TK
tkofford@ku.edu
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Nov 07, 2011 - 07:54 AM



Joined: Nov 11, 2010
Posts: 2489

tkofford ,

We already have this in our enhancement list. As we have to prioritize between several other feature requests, this went further down our list. I will get this again to the management's attention.

Sorry for the inconvenience caused.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits