??????????? env ???????????????????????? CruiseControl ??????????????????????????????????????? JAVA_HOME ?к?????????????????y??????????????????????????????? MAVEN_HOME??

[root@fcvm .cruisecontrol]# mkdir env
[root@fcvm .cruisecontrol]# cd env
[root@fcvm env]# echo /usr/lib/jvm/java >JAVA_HOME
[root@fcvm env]# echo /home/cruise/pkg/maven-1.0.2 >MAVEN_HOME
[root@fcvm env]# ls
JAVA_HOME  MAVEN_HOME
[root@fcvm env]# cd ..
[root@fcvm .cruisecontrol]#


?嵥 2 ????? /service/cruisecontrol/run ?????

?嵥 2. /service/cruisecontrol/run ??????

    #!/bin/sh
svc=`pwd`
cd /home/cruise
exec 2>&1
exec setuidgid cruise
        envdir ${svc}/env
        java -jar pkg/cruisecontrol-2.2.1/main/dist/cruisecontrol.jar


???????????????????????Щ???裺

    ???????????????????????????? /service/cruisecontrol????????á?
    ????????? /home/cruise??
    ??????????д?? multilog ??????????????????????????????????
    ??? JVM?????? CruiseControl???? cruise ????????????н?????????? /service/cruisecontrol/env ???д?????????????????

?嵥 3 ????? /service/cruisecontrol/log/run ????????????????? cruise ???????????? multilog??

?嵥 3. /service/cruisecontrol/log/run ??????

    #!/bin/sh
exec setuidgid cruise multilog /home/cruise/log/cruisecontrol


???????????? chmod ???????????????е???????????????????С?????? exec ?????????????????????????????????????????д??????????????????????? supervise ????????????????????????????? exec????? JVM ???????? run ??????????????????????????? supervise ?????????????????????????????????????????????? JVM ????????У???????????supervise ???????????????????????????????????????????? —— ???????????????

?????ú÷?????????????????????????????????? svscan ???????? CruiseControl????????????????????????У?

[root@fcvm .cruisecontrol]# cd ..
[root@fcvm service]# mv .cruisecontrol cruisecontrol
[root@fcvm service]# cat /home/cruise/log/cruisecontrol/current
[cc]Aug-24 21:45:45 Main          - CruiseControl Version 2.2.1
[cc]Aug-24 21:45:46 trolController- projectName = [xstream]
[cc]Aug-24 21:45:46 Project       - Project xstream:  reading settings
 from config file [/home/cruise/config.xml]
[cc]Aug-24 21:45:47 BuildQueue    - BuildQueue started
[cc]Aug-24 21:45:47 Project       - Project xstream starting
[cc]Aug-24 21:45:47 Project       - Project xstream:  idle
[cc]Aug-24 21:45:47 Project       - Project xstream started
[cc]Aug-24 21:45:47 Project       - Project xstream:  next build in 1
hours
[cc]Aug-24 21:45:47 Project       - Project xstream:  waiting for next
 time to build
[root@fcvm service]#

?? CruiseControl ??????

????????? CruiseControl ???????????????????????С??????????????????????????????????????????config.xml ????е????????????????????????????????????????????????????????????????????????????????????? config.xml ??????????????????????????? XSLT ??????????? XML ??????? config.xml ??????????????????????????????????????????????? tar ?????????? ???????????????Щ????? /home/cruise ????

[cruise@fcvm ~]$ ls
config.xml         force-build  pkg  xstream.ser
cruisecontrol.log  log          src
[cruise@fcvm ~]$ tar xvzf [...]/simple-cc.tar.gz
meta-config-params.xsl
meta-config.xsl
meta-config.xml
mkconfig
[cruise@fcvm ~]$ ls
config.xml         meta-config-params.xsl  pkg
cruisecontrol.log  meta-config.xml         src
force-build        meta-config.xsl         xstream.ser
log                mkconfig
[cruise@fcvm ~]$


?????????????? meta-config.xml??????????? meta-config.xsl ???????б任?????? CruiseControl ?? config.xml ????????? mkconfig ???????????????? XMLStarlet ?????????????????????? mkconfig ???????? CruiseControl ?? config.xml ?????

????????

??濪???? CruiseControl ??????????????????????????????????????????????????????????????????????????????????????????????????????????meta-config.xsl ????????????????????????????????????????????????Щ?????????????????????????????????????? meta-config-params.xsl ????????????????????????????????????????????е??????????????

    home ?????????????????????????????????????????????????????????????????
    cruisecontrol-home ??CruiseControl ???а?????????????????????????????????????
    ant-home ??Ant ???????????? Fedora Core 4 ????? Ant?????????????? /usr??
    maven-home ??Maven ?????????????????????????????????? Maven ??????? /home/cruise/pkg ????
    return-address ??CruiseControl ???????????????????????????
    return-name ??????????????????????????
    developers-address ????????γ???????????й???????????????????????????????????????????????????????