安排Ant任务 [英] schedule ant task

查看:167
本文介绍了安排Ant任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能,以及如何,如果你知道,安排一个Ant任务的执行?
例如,我想每5小时,或每天在特定时间执行我的build.xml?
我一直在寻找周围,但没有找到解决办法。

Is it possible "and how if you know", to schedule the execution of an ant task? For example, i want my build.xml to be executed every 5 hours or every day at a certain time? I have been looking around but no solution found

感谢您

推荐答案

有关非常简单的要求,我想呼应用cron的。

For very simple requirements, I'd echo the use of cron.

如果运行ANT的理由是定期执行项目的code的主生成,那么你有效地遵循所谓的持续集成。在这种情况下,我会强烈建议运行一个持续集成服务器,如詹金斯

If the reason for running ANT is to periodically perform a master build of your project's code, then you're effectively following a practice called "Continuous Integration". In that case I'd highly recommend running a continuous integration server, such as Jenkins.

詹金斯是软件是非常有效的,便于安装,并且可以成为不仅仅是构建code您更多的自动化框架。

Jenkins is a very useful piece of software, easy to install and can become your automation framework for more than just building your code.

这篇关于安排Ant任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆