??????????????????????????????????CruiseControl ???????????????????????y??????ι????????汾??????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????????????ū???????μ??????????????ù????????????????????????????????£????????????????????????????????????????б???????????????????????????????????????????б???????????????????緢???????????????

?嵥 4 ????? meta-config.xml ?????????

?嵥 4. meta-config.xml ????

    <projects>
  <project name="project-name" [interval="seconds"]>
    <svn/>|<cvs/>
    <ant/>|<maven/>
    <clean>goals or targets to clean source tree</clean>
    <build>goals or targets to build</build>
    [<srcdir>source directory</srcdir>]
    [<remote-project/>]
    [<repo-dependency>groupId</repo-dependency>*]
    [<srcdir-dependency>project-name</srcdir-dependency>*]
    [<modificationset>CruiseControl elements</modificationset>]
  </project>*
</projects>


???????????????? <project> ????б??????????????? name ?????????? interval ????????? CruiseControl ???? 5 ??????????????????????????????????????????????汾????????????

???? <svn/> ?? <cvs/> ???????????????????????????????????汾??????????????????????????????????????? <ant/> ?????? <maven/>???????????????????????????????????????? Maven ?????????????????????? Maven?????????????? <clean>clean</clean> ?? <build>jar:install-snapshot</build>?????? Ant???????????? build.xml ?????????????????

???????????? /home/cruise/src ???£????????????????? name ????? my-project ????????????? /home/cruise/src/my-project ?С???Щ?????д??????????п?????????????????????????????????<project> ?????????????? <srcdir> ??????????? /home/cruise/src ????????????????磺

<project name="my-utils">
  <srcdir>big-project/my-utils</srcdir>
  ...


CruiseControl ?????????????ι??????????????????????????????????????汾?????????????????????? <remote-project/> ?????????????????????? meta-config.xsl ?????????? developers-address ?????

?????????????

CruiseControl ???????????????????????????????????????? JAR ???????????????????????????????????????????? CruiseControl ??????????????????????????????????顣???????????????????????????????????1??????????????????????????????????°汾???±?????????????????????????????????????????????????Щ?????????

CruiseControl ???????????????????? <filesystem> ???????????????????????????? <modificationset> С???У???????????????Щ????????????????????1??????嵥 1 ?г???? config.xml ??????????????????????????е?????????????????????1????????е????????????????????λ????????????????????磬???????????????????????????????????? JAR ????????????? <filesystem> ?????????Щλ?????????????Щ???????????й?????

Ant ??????????????????к????????????????????????????????1??????????????????????????????????????????????????? build.xml ???????????????????????????????????????? <filesystem> ?????????????Щ?????????С????? meta-config.xml ????????? <modificationset> ???????????????κ? CruiseControl ??????????????? config.xml ????С????磬???? XStream ?????????????????????

<project name="my-project">
  [...]
  <modificationset>
    <filesystem
          folder="/home/cruise/src/xstream/xstream-SNAPSHOT.jar"/>
  </modificationset>
</project>


Maven ??????????????????????????????????? Maven ????????????????????????Щ???????????????? Maven ????????????鴴????????????????????????????? <repo-dependency>classworlds</repo-dependency> ??????????? /home/cruise/.maven/repository/classworlds ?μ?????????仯?????????й????????? classworlds ??????????? Maven ????а??????????? JAR ?????????κ????????????????????????1?????

???????????????????????????????????????? <srcdir-dependency>classworlds</srcdir-dependency> ??????????? ${srcdir}/target ?μ?????????仯???????й????????? ${srcdir} ????????????????

??????????

??????????????????????????????裺

    ??? cruise ????????????????? /home/cruise/src ????
    ?????????????????????
    ?? meta-config.xml ?????????????
    ???? ./mkconfig??
    ???? CruiseControl?????????? config.xml ????μ??????????????? ps ??????????? CruiseControl ?? JVM ????? ID??????? kill ??????????????????? root ?????????? svc -t /service/cruisecontrol???? daemontools ????????????????????????supervise ???????? CruiseControl ???????
    ?????????? /home/cruise/force-build/${project-name} ????????????? CruiseControl ??????????1?????

CruiseControl Web ??ó???

???????е? CruiseControl ????????????????????????????????????????????????????????????????Щ???????????? —— ???磬????????????????????CruiseControl ??????????? Web ??ó???????????Щ???????????????????