CruiseControl学习笔记(二)

本来以为使用CruiseControl的话,编写config.xml就可以了,但是使用中发现,如果想看到正确的results jsp,还是需要修改cruisecontrol目录下/webapps/cruisecontrol/WEB-INF/web.xml文件。

主要是log的目录和ArtifactServlet中root的目录,如下红字部分:

<context-param>
    <!-- You can set this value via the user.log.dir property in Ant, when building the WAR file. -->
    <param-name>logDir</param-name>
    <param-value>C:/CruiseControlBuild/logs</param-value>
    <description> This should be the full path to your CruiseControl log directory. If you
          are in single project mode, this will contain only the logs for your project. If you
          are in multi-project mode, it is expected that you will have multiple sub-directories
          inside this log directory, one for each project.
    </description>
</context-param>

<servlet>
    <servlet-name>ArtifactServlet</servlet-name>
    <servlet-class>net.sourceforge.cruisecontrol.servlet.FileServlet</servlet-class>
    <init-param>
        <param-name>rootDir</param-name>
        <param-value>C:/CruiseControlBuild/artifacts</param-value>
    </init-param>
</servlet>  

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值