Cruisecontrol 및 SVN 통합config.xml build.xml_http://meetrice.javaeye.com/blog/73636

8980 단어 SVNantcssFilecvsmerge
config.xml
Java 코드
  •   
  •        
  •            
  •            
  •                
  •            
  •   
  •            
  •            
  •              
  •                  
  •              
  •         
  •            
  •                
  •                
  •            
  •            
  •            
  •                
  •            
  •            
  •            
  •                
  •            
  •            
  •            
  •                
  •                    
  •                
  •                   
  •             
  •                 returnaddress="[email protected]"    
  •                 buildresultsurl="http://home.raibledesigns.com:8888/buildresults/${project.name}"    
  •                 css="webapps/cruisecontrol/css/cruisecontrol.css"  
  •                 xsldir="webapps/cruisecontrol/xsl"  
  •                 logdir="logs/${project.name}"    
  •                 subjectprefix="[CruiseControl] ">   
  •                    
  •                    
  •                    
  •                
  •            
  •        
  •   
  • <cruisecontrol>
        <project name="demo">
    		<!--        
    		<plugin name="svn" classname="net.sourceforge.cruisecontrol.sourcecontrols.SVN"/>
    		<plugin name="svnbootstrapper" classname="net.sourceforge.cruisecontrol.bootstrappers.SVNBootstrapper"/>
    		-->
            <listeners>
                <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>
            </listeners>
    
            <!--bootstrappers>
                <cvsbootstrapper localWorkingCopy="projects/${project.name}" />
            </bootstrappers-->
            
            <bootstrappers>  
                <svnbootstrapper localWorkingCopy="projects/${project.name}" />  
            </bootstrappers>  
            <!--quietperiod   svn log    ,  ,   ,    -->
            <!--modificationset quietperiod="30">
                <svn LocalWorkingCopy="projects/${project.name}"/-->
                <!--cvs localWorkingCopy="projects/${project.name}"/-->
                <!--filesystem folder="projects/${project.name}"/-->
            <!--/modificationset-->
            
            <schedule interval="600">
                <ant anthome="apache-ant-1.6.5" buildfile="build.xml" target="pull"/>
            </schedule>
            
            <log>
                <merge dir="projects/${project.name}/build/test/data"/>
            </log>
            
            <publishers>
                <onsuccess>
                    <artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/dist/webapps/${project.name}.war"/>
                </onsuccess>
                   
                <htmlemail mailhost="localhost" 
                    returnaddress="[email protected]" 
                    buildresultsurl="http://home.raibledesigns.com:8888/buildresults/${project.name}" 
                    css="webapps/cruisecontrol/css/cruisecontrol.css"
                    xsldir="webapps/cruisecontrol/xsl"
                    logdir="logs/${project.name}" 
                    subjectprefix="[CruiseControl] ">
                    
                    <map alias="mraible" address="[email protected]"/>
                    <failure address="mraible" reportWhenFixed="true"/>
                </htmlemail>
            </publishers>
        </project>
    </cruisecontrol>
    
    

    config.xml
    Java 코드
  •   
  •   
  •        
  •        
  •         
  •             
  •         
  •        
  •        
  •         
  •   
  •        
  •            
  •            
  •             
  •                   revision="HEAD" destPath="projects/${ant.project.name}" />   
  •            
  •        
  •        
  •        
  •            
  •            
  •                
  •            
  •        
  •   
  •        
  •        
  •        
  •             
  •            
  •            
  •            
  •        
  •   
  •        
  •   
  • 좋은 웹페이지 즐겨찾기