Nipun Bahr wrote:
Hi,
As part of implementing auto deployment for Sun one web server, I am copying WAR file generated to auto-deploy folder of Sun directory through ANT script.
But still auto deployment is not happening. Its not reflecting the changes made in generated WAR.
Could anybody help me regarding this?
-----------------------------------------------------------------
I also faced the same issue.
So I have written ant task to copy the application (or extracted copy of war) to web-app directory instead of
auto-deploy.
See the below ant code:
1. Stop the server
<exec executable="${sun-ws-home}/bin/stopserv.bat"/>
2. Extract the war to deployment directory(ie, web-app directory inside respective domain folder).
<unzip src="${war_file}" dest="${sun-deployment-dir}"/>
3. Start the server.
<exec executable="${sun-ws-home}bin/startserv.bat"/>
This is working fine and it is faster than the manual deployment through the admin console.
I searched in google. I found some ant tasks are available for deployment. But those are not working. Also , I didnt do much research on that.
Hope this will be helpful.