@echo off REM ################################################################################ REM # CruiseControl, a Continuous Integration Toolkit REM # Copyright (c) 2001, ThoughtWorks, Inc. REM # 651 W Washington Ave. Suite 600 REM # Chicago, IL 60661 USA REM # All rights reserved. REM # REM # Redistribution and use in source and binary forms, with or without REM # modification, are permitted provided that the following conditions REM # are met: REM # REM # + Redistributions of source code must retain the above copyright REM # notice, this list of conditions and the following disclaimer. REM # REM # + Redistributions in binary form must reproduce the above REM # copyright notice, this list of conditions and the following REM # disclaimer in the documentation and/or other materials provided REM # with the distribution. REM # REM # + Neither the name of ThoughtWorks, Inc., CruiseControl, nor the REM # names of its contributors may be used to endorse or promote REM # products derived from this software without specific prior REM # written permission. REM # REM # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS REM # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT REM # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR REM # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR REM # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, REM # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, REM # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR REM # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF REM # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING REM # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS REM # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. REM ################################################################################ set JAVA_HOME=C:\java\j2sdk1.4.2_12 rem JAVA_HOME=C:\java\jdk1.5.0_09 set ANT_HOME=C:\utils\apache-ant set ANT_OPTS="-Xmx1024m" set PATH=C:\utils\svn-win32-1.4.3\bin;%ANT_HOME%\bin;%JAVA_HOME%\bin;%PATH% rem 192.0.2.0/24 - Test-Net IP Block (configure with /30 for jboss tests) set MYTESTIP_1=192.0.2.1 set MYTESTIP_2=192.0.2.2 REM Set this if you're using SSH-based CVS REM set CVS_RSH= REM Uncomment the following line if you have OutOfMemoryError errors set CC_OPTS=-Xms128m -Xmx1024m REM The root of the CruiseControl directory. The key requirement is that this is the parent REM directory of CruiseControl's lib and dist directories. REM By default assume they are using the batch file from the local directory. REM Acknowledgments to Ant Project for this batch file incantation REM %~dp0 is name of current script under NT set CCDIR=C:\Progra~1\CruiseControl-2.6\ :setClassPath set CRUISE_PATH= :checkJava if not defined JAVA_HOME goto noJavaHome set JAVA_PATH="%JAVA_HOME%\bin\java" set CRUISE_PATH=%JAVA_HOME%\lib\tools.jar goto setCruise :noJavaHome echo WARNING: You have not set the JAVA_HOME environment variable. Any tasks relying on the tools.jar file (such as ) will not work properly. set JAVA_PATH=java :setCruise set LIBDIR=%CCDIR%lib set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\cruisecontrol.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\cruisecontrol-launcher.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\log4j.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\jdom.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\ant.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\ant-launcher.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\jasper-compiler.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\jasper-runtime.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\xercesImpl-2.8.0.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\xml-apis-2.8.0.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\xmlrpc-2.0.1.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\saxon8.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\saxon8-dom.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\serializer-2.7.0.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\jakarta-oro-2.0.3.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\mail.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\junit.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\activation.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\commons-net-1.1.0.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\starteam-sdk.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\mx4j.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\mx4j-tools.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\mx4j-remote.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\smack.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\comm.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\x10.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\fast-md5.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\maven-embedder-2.0.4-dep.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\javax.servlet.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\org.mortbay.jetty.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\commons-logging.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\commons-el.jar set CRUISE_PATH=%CRUISE_PATH%;%LIBDIR%\jaxen-1.1-beta-8.jar set CRUISE_PATH=%CRUISE_PATH%;. pskill java sleep 10 rem kill -SIGKILL java umount h: #mount -o casesensitive \\nfs01\home h: mount -o casesensitive \\netapp02.qa.atl.jboss.com\vol\qa_services\services\ h: h: cd \cruisecontrol\work set EXEC="%JAVA_PATH%" %CC_OPTS% -cp "%CRUISE_PATH%" -Dcc.home=. -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder CruiseControl %* -jmxport 8091 -configfile scripts/cc-win-config.xml rem set EXEC="%JAVA_PATH%" %CC_OPTS% -cp "%CRUISE_PATH%" -Dcc.home=. -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder CruiseControl %* -jmxport 8091 -configfile scripts/proba.xml echo %EXEC% %EXEC% 1> dev29.out 2>&1 rem %EXEC% c: