在ANT中启动Jetty

Posted on 2008-03-20 11:11 Robert Su 阅读(773) 评论(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>






只有注册用户登录后才能发表评论。


网站导航:
 

posts - 103, comments - 104, trackbacks - 0, articles - 5

Copyright © Robert Su