几个星期以来,我一直在尝试每周在特定时间运行一个 ant 脚本,以便在我们的 SVN 签入中由巡航控制生成的许多服务器上部署一个战争文件。每次签入时,war 文件都构建得很好,但我似乎无法让部署脚本自动化。
我在 config.xml 中尝试过这样的事情:
<project name="deploy" requireModification = "false">
<listeners>
<currentbuildstatuslistener
file="logs/Adeploy/status.txt"/>
</listeners>
<compound includeTriggerChanges="false">
<triggers>
<scheduleTrigger time="15:28" buildCondition="ForceBuild" name="Scheduled">
<weekDays>
<weekDay>Thursday</weekDay>
</weekDays>
</scheduleTrigger>
</triggers>
</compound>
<schedule>
<ant buildfile = "deploy.xml" useLogger = "true"/>
</schedule>
这没有任何触发器:
<schedule>
<ant day = "Thursday" time = "1552" buildfile = "call-Auto-Deploy.xml" useLogger = "true"/>
</schedule>
但niether似乎正在运行。我的项目配置中是否缺少某些内容?