Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » creating a war file
creating a war file [message #110931] Mon, 13 June 2005 07:11 Go to next message
Eclipse UserFriend
Can someone please provide some good examples/links on how to do this in
eclipse

I googled but nothing is clear, i can't find a simple example to follow:

On the command line is it something like this, jar cvf myWar.war file
WEB-INF c:\myapp ?

Thanks for any help
Re: creating a war file [message #111243 is a reply to message #110931] Wed, 15 June 2005 02:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: utilisateur.exemple.com

plork123 a écrit :
> Can someone please provide some good examples/links on how to do this in
> eclipse
>
> I googled but nothing is clear, i can't find a simple example to follow:
>
> On the command line is it something like this, jar cvf myWar.war file
> WEB-INF c:\myapp ?
>
> Thanks for any help
>
>
>
>
you asked twice ;)
and i'm waiting for the the answer with you
answer should be trivial
but for a newbie like me :)

good luck
Re: creating a war file [message #111555 is a reply to message #111243] Thu, 16 June 2005 04:12 Go to previous messageGo to next message
Eclipse UserFriend
You can use an Ant build file to achieve the same thing. I put something
like the following in a build file:

<project name="myapp" default="exportwar" basedir=".">
<target name="exportwar">
<war destfile="../dist/myapp.war"
basedir="../.deployables/myapp"
webxml="../.deployables/myapp/WEB-INF/web.xml" />
</target>
</project>

Then I put the build file in a new folder, "buildfiles", and created a new
folder "dist" for the war to go into. Then just add the build file in the
Ant view.
It is a little strange to have to use a work-around as it appears (according
to the tutorials) that it used to be a feature.

"exquisitus" <utilisateur@exemple.com> wrote in message
news:d8ohef$nmv$1@news.eclipse.org...
> plork123 a
Re: creating a war file [message #112711 is a reply to message #111555] Mon, 20 June 2005 03:58 Go to previous message
Eclipse UserFriend
Originally posted by: utilisateur.exemple.com

Phil a écrit :
> You can use an Ant build file to achieve the same thing. I put something
> like the following in a build file:
>
> <project name="myapp" default="exportwar" basedir=".">
> <target name="exportwar">
> <war destfile="../dist/myapp.war"
> basedir="../.deployables/myapp"
> webxml="../.deployables/myapp/WEB-INF/web.xml" />
> </target>
> </project>
>
> Then I put the build file in a new folder, "buildfiles", and created a new
> folder "dist" for the war to go into. Then just add the build file in the
> Ant view.
> It is a little strange to have to use a work-around as it appears (according
> to the tutorials) that it used to be a feature.
>
> "exquisitus" <utilisateur@exemple.com> wrote in message
> news:d8ohef$nmv$1@news.eclipse.org...
>
>>plork123 a écrit :
>>
>>>Can someone please provide some good examples/links on how to do this in
>>>eclipse
>>>
>>>I googled but nothing is clear, i can't find a simple example to follow:
>>>
>>>On the command line is it something like this, jar cvf myWar.war file
>>>WEB-INF c:\myapp ?
>>>
>>>Thanks for any help
>>>
>>>
>>>
>>>
>>
>>you asked twice ;)
>>and i'm waiting for the the answer with you
>>answer should be trivial
>>but for a newbie like me :)
>>
>>good luck
>
>
>
thx for answer
really
Previous Topic:Severe Performance Issues with HTML in WTP 0.7 M4
Next Topic:emf / sdo / wtp
Goto Forum:
  


Current Time: Thu Apr 17 22:03:19 EDT 2025

Powered by FUDForum. Page generated in 0.03704 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top