Posted on 2008-03-20 11:11
Robert Su 閱讀(784)
評論(0) 編輯 收藏
通過Ant Jetty plugin我們可以在ant構建腳本中直接啟動Jetty。
<project name="Jetty-Ant integration test" basedir=".">
<path id="jetty.plugin.classpath">
<fileset dir="jetty-lib" includes="*.jar"/>
</path>
<taskdef classpathref="jetty.plugin.classpath" resource="tasks.properties" loaderref="jetty.loader" />
<target name="jetty.run">
<jetty />
</target>
</project>