samba的配置可以参考http://fanqiang.chinaunix.net/a1/b1/20011223/08300015.html
我使用是fc3,起的x服务,所可以applications->system setting->server setting->samba
有图形化的工具,把tomcat目录共享出来,然后在ant脚本中加上
[code]
<target name="dist to uat" description="Package the compiled WAR and source files into a tarball.">
<copy todir="${uat.dir}">
<fileset dir="${src.webroot.dir}"/>
</copy>
</target>
[/code]
搞定!这样可以把使用ant来发布我的程序了,我在调试的时候并没有打成war包,而是直接考的文件,这样快一些
我使用是fc3,起的x服务,所可以applications->system setting->server setting->samba
有图形化的工具,把tomcat目录共享出来,然后在ant脚本中加上
[code]
<target name="dist to uat" description="Package the compiled WAR and source files into a tarball.">
<copy todir="${uat.dir}">
<fileset dir="${src.webroot.dir}"/>
</copy>
</target>
[/code]
搞定!这样可以把使用ant来发布我的程序了,我在调试的时候并没有打成war包,而是直接考的文件,这样快一些
本文介绍了如何通过Samba服务将Tomcat目录共享,并利用Ant脚本实现应用程序的部署过程。作者在Fedora Core 3上配置了Samba服务,并通过图形化工具使Tomcat目录对外共享。此外,在Ant脚本中加入了复制文件到特定目录的步骤,实现了快速部署。
2万+

被折叠的 条评论
为什么被折叠?



