Code Search for Developers
 
 
  

agent-build.xml from cruisecontrol at Krugle


Show agent-build.xml syntax highlighted

<?xml version="1.0"?>
<!--****************************************************************************
 * CruiseControl, a Continuous Integration Toolkit
 * Copyright (c) 2001, ThoughtWorks, Inc.
 * 200 E. Randolph, 25th Floor
 * Chicago, IL 60601 USA
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 *     + Redistributions of source code must retain the above copyright
 *       notice, this list of conditions and the following disclaimer.
 *
 *     + Redistributions in binary form must reproduce the above
 *       copyright notice, this list of conditions and the following
 *       disclaimer in the documentation and/or other materials provided
 *       with the distribution.
 *
 *     + Neither the name of ThoughtWorks, Inc., CruiseControl, nor the
 *       names of its contributors may be used to endorse or promote
 *       products derived from this software without specific prior
 *       written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 ****************************************************************************-->

<!-- ====================================================================== 
     Dec 17, 2004 1:09:40 PM                                                        

     This Ant script contains only one target that starts the BuildAgent
     and registers the build service with Jini on the build master. See 
     the README.txt in "contrib/distributed" for more information.
                   
     jramsdale                                                                
     ====================================================================== -->
<project name="cc-agent" default="start-agent">
	
	<property file="conf/agent.properties" />

    <!-- JNLP Service API classes -->
    <path id="jnlpServiceAPI.classpath">
        <fileset dir="${java.home}">
            <!-- location in jre1.5 -->
            <include name="lib/javaws.jar"/>
            <!-- location in jre1.4 -->
            <include name="javaws/javaws.jar"/>
        </fileset>
    </path>

    <target name="init">
		<mkdir dir="${cruise.build.dir}/checkout"/>
		<mkdir dir="${cruise.build.dir}/logs"/>
		<mkdir dir="${cruise.build.dir}/output"/>
	</target>
	
    <target name="start-agent" depends="init" description="Start a BuildAgent service and register with Jini" >
    	<echo message="Starting Build Agent" level="info"/>
    	<java classname="net.sourceforge.cruisecontrol.distributed.BuildAgent" fork="true">
    		<jvmarg value="-Djava.security.policy=${jini.policy.file}"/>

    		<jvmarg value="-Djava.util.logging.manager=com.sun.jini.logging.LogManager"/>
    		<jvmarg value="-Djava.util.logging.config.file=conf/${jini.logging.file}"/>

            <!-- pass headless prop from command line if it exists. -->
            <jvmarg value="-Djava.awt.headless=${java.awt.headless}"/>

    		<classpath>
    			<pathelement path="conf"/>
    			<fileset dir="lib">               <!-- Includes copied ccdist-buildAgentService.jar, ccdist-core.jar -->
    				<include name="**/*.jar" />
    			</fileset>
    			<fileset dir="jini-core">
    				<include name="**/*.jar" />
    			</fileset>
    			<fileset dir="jini-lib">
    				<include name="**/*.jar" />
    			</fileset>
                <path refid="jnlpServiceAPI.classpath"/>
    		</classpath>

            <!-- To enable debug fulltime on the Agent, alter the log4j.properties file. Change:
            log4j.rootCategory=INFO,A1,FILE
            to
            log4j.rootCategory=DEBUG,A1,FILE
            Debug will always be enabled on the Agent during builds if the Master has debug enabled. -->
        </java>
    </target>

</project>





See more files for this project here

cruisecontrol

CruiseControl is a framework for a continuous build process. It includes, but is not limited to, plugins for email notification, Ant, and various source control tools. A web interface is provided to view the details of the current and previous builds.

Project homepage: http://sourceforge.net/projects/cruisecontrol
Programming language(s): Java,XML
License: other

  README.html
  agent-build.xml
  agent.properties
  cruise.properties
  insecure.policy
  jini.logging
  log4j.properties
  lookup-build.xml
  start-jini.config
  transient-reggie.config
  user-defined.properties
  util-build.xml