Reputation: 157
i want to know if its possible to generate a war using Ant.
Nowadays we are using Eclipse to create the War( File -> Export -> War),but I did an Ant script that create a War but it's not compatible with Jboss.
<zip destfile="${docflow4-web-home}/deploy/${nome}.war">
<zipfileset dir="${docflow4-web-home}/web" />
</zip>
Upvotes: 0
Views: 166
Reputation: 1517
Replace "zip" with "war" and supply a web.xml for your war:
<war destfile="${docflow4-web-home}/deploy/${nome}.war" webxml="path/to/web.xml">
<zipfileset dir="${docflow4-web-home}/web"/>
</war>
For more details, check out the documentation at http://ant.apache.org/manual/index.html
Upvotes: 1
Reputation: 111
Use the war tag instead of zip. (You can also create the WAR structure then just use the jar tag to create a WAR file.)
Upvotes: 0