Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <target name="jetty.deploy">
- <echo message="Stopping jetty..."></echo>
- <exec dir="${jetty.home}/bin" executable="${jetty.home}/bin/jetty.sh">
- <arg line="stop"/>
- </exec>
- <copy todir="${jetty.home}/webapps" file="${build}/${webapp.name}.war"/>
- <echo message="Starting jetty..."></echo>
- <exec dir="${jetty.home}/bin" executable="${jetty.home}/bin/jetty.sh" spawn="true">
- <arg line="start"/>
- </exec>
- <echo message="Watiting for something (hopefully jetty!) to start on port ${jetty.port}..."></echo>
- <waitfor maxwait="120" maxwaitunit="second" checkevery="5" checkeveryunit="second" timeoutproperty="jetty.deploy.failed">
- <socket server="localhost" port="${jetty.port}"/>
- </waitfor>
- <fail if="jetty.deploy.failed" message="Timed out waiting for jetty deploy"/>
- </target>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement