You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vaadin-server.xml 1.5KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0"?>
  2. <project xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:ivy="antlib:org.apache.ivy.ant" name="vaadin-server" default="deploy-and-start" basedir=".">
  3. <include file="../common.xml" />
  4. <dirname property="dir" file="${ant.file.vaadin-server}" />
  5. <target name="deploy-and-start">
  6. <fail unless="war.file" message="No war file given in 'war.file'" />
  7. <ivy:resolve log="download-only" file="${dir}/ivy.xml" />
  8. <ivy:cachepath pathid="classpath.jetty" conf="jetty-run" />
  9. <java classname="org.mortbay.jetty.runner.Runner" fork="yes" output="${vaadin.basedir}/result/jetty.java.out" resultproperty="resultCode" maxmemory="1024m">
  10. <arg value="--port" />
  11. <arg value="8888" />
  12. <arg value="--out" />
  13. <arg value="${vaadin.basedir}/result/jetty.out" />
  14. <arg value="--log" />
  15. <arg value="${vaadin.basedir}/result/jetty.log" />
  16. <arg value="${war.file}" />
  17. <classpath refid="classpath.jetty" />
  18. <jvmarg value="-ea" />
  19. </java>
  20. <echo message="Jetty process ended with result code ${resultCode}" />
  21. </target>
  22. <target name="wait-for-startup">
  23. <echo>Waiting for Servlet Container to start up.</echo>
  24. <waitfor maxwait="60" maxwaitunit="second" checkevery="5" checkeveryunit="second" timeoutproperty="server.start.failed">
  25. <http url="http://localhost:8888" />
  26. </waitfor>
  27. <fail if="server.start.failed" message="Server startup failed" />
  28. </target>
  29. </project>