 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: script myexclipse export of war j2ee
Posted: Jun 05, 2009 - 04:16 PM
|
|
Registered Member

Joined: Dec 11, 2008
Posts: 16
|
|
Hi, right now I export using j2ee war (my exclipse), this creates a war file that works great in tomcat. However creating this war (500 megs now) and coping it is slow.
I would like to build the war using scripts and not the myeclipse UI. Is there any tools for creating an ant script that will do this exact same thing from command line? or do I need to create by hand?
thanks
Joel |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: script myexclipse export of war j2ee
Posted: Jun 08, 2009 - 11:11 AM
|
|
Registered Member

Joined: May 12, 2005
Posts: 473
|
|
| jnylund wrote: | Hi, right now I export using j2ee war (my exclipse), this creates a war file that works great in tomcat. However creating this war (500 megs now) and coping it is slow.
I would like to build the war using scripts and not the myeclipse UI. Is there any tools for creating an ant script that will do this exact same thing from command line? or do I need to create by hand?
thanks
Joel |
MyEclipse can create web projects with Maven support. This way you will be able to generate war file without using ME by calling Maven package on your build machine (given you properly configure the Maven repository there). You can use other Maven features as well (i.e. reports, project site generation) and don't need to install MyEclipse there. |
_________________ Eugene
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: script myexclipse export of war j2ee
Posted: Jun 08, 2009 - 11:14 AM
|
|
Registered Member


Joined: Feb 03, 2009
Posts: 3242
|
|
Joel,
Question - why do you need to create a war file and run in tomcat outside of ME?
I would recommend you to use deployment options - Exploded Archive for development mode and Packaged Archive for production mode.
If you are using packaged archive, it may take long to complete the re-export and drop it to your destination folder, considering your war file is 500 megs. Hence you are experiencing a slow export to war. We don't have any tool inside MyEclipse IDE to generate an ant script for you. But you should be able to write your own ant script to generate the war file outside of ME. Sorry about that. |
_________________ Joy
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |