| Author |
Message |
|
|
Post subject: Ant
Posted: Jan 04, 2005 - 05:03 PM
|
|
Veteran Member


Joined: Mar 08, 2004
Posts: 127
|
|
I know one of the great strengths of MyEclipse is that you can deploy automatically. However, as MyEclipse does not handle remote deployments, I'm wondering if we can automatically create an Ant script from our MyEclipse settings?
Lee |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 04, 2005 - 10:03 PM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
Lee,
| Quote: |
I'm wondering if we can automatically create an Ant script from our MyEclipse settings?
|
Possibly, but not easily. I'd suggest one of the two following courses of action instead. First, if it is possible to mount a remote drive from the server you want to deploy to on your local machine, do that and use the <Custom Location> server setting in the new deployment dialog to deploy to wherever you want. You can also debug the remote server just as if you launched it from MyEclipse. Please see the Remote Debugging Quickstart in the Documentation section for full details on how to do this here:
http://www.myeclipseide.com/ContentExpress-display-ceid-67.html
If you can't mount a remote drive, it would be much easier to still use the <Custom Location> deployment option to package the project(s) to a location on your remote machine and then write an Ant script that just copies it where you need it remotely. |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 05, 2005 - 02:30 PM
|
|
Veteran Member


Joined: Mar 08, 2004
Posts: 127
|
|
Working in a corporate environment I'm not in control of all the variables. I need to deploy war files only.
Right now I have to build a different war firl for dev, test, and production -- as the web.xml, log4j.properties, and hibernate.cfg.xml etc. are different and are built into the war files.
I was thinking of making an ant script that would build them automatically.
We develop on tomcat and deploy on Websphere.
Lee |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 05, 2005 - 03:21 PM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
Lee,
I see what you're getting at. You've basically got additional QA and Production concerns, in addition to development ones. MyEclipse doesn't really offer any production build management capabilities since we focus on development and debugging.
Generally in a production configuration, we recommend that you have an external process or application (ie Ant Farm) that pulls all the source directly from your repository, compiles it with optimization, and packages it for production deployment. |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 05, 2005 - 05:50 PM
|
|
Veteran Member


Joined: Mar 08, 2004
Posts: 127
|
|
Do you have a link to more info about an "Ant Farm"?
It seems clear that I do need to use Ant, and I'm cool with that. Just looking for a way to leverage all that I've setup in my MyEclipse project in order to create the build.xml file.
Lee |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 05, 2005 - 06:21 PM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
Lee,
Well, I searched for the Ant Farm build product I mentioned and couldn't find anything on it now. Perhaps it is no longer available. Sorry, I wish I could locate something to help you out. |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 05, 2005 - 07:19 PM
|
|
Veteran Member


Joined: Mar 08, 2004
Posts: 127
|
|
Ok...you can add "create build.xml" file as a "feature request" :) |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 05, 2005 - 08:26 PM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
It's a little harder than that since Ant can't follow Eclipse links and our builder can. ;-)
But, please feel free to post to the Feature Requests forum with the idea. :-) |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|