Re: Cruisecontrol-user Digest, Vol 58, Issue 2
Antoine Levy-Lambert <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Here an example of wrapper script @echo off if EXIST "C:\Program Files\Java\jdk1.6.0_16" ( set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16 )ELSE IF EXIST "D:\Program Files\Java\jdk1.6.0_16" ( set JAVA_HOME=D:\Program Files\Java\jdk1.6.0_16 ) ELSE ( ECHO jdk1.6.0_16 could not be found exit /B 1 ) set ANT_HOME=c:\apache-ant-1.8.2 call %ANT_HOME%\bin\ant.bat %* You save this file somewhere on your build server, for instance in a directory %USERPROFILE%\bin or C:\scripts or whatever name you like. Then in the config.xml you use the antscript attribute <project .. <ant antscript="C:\scripts\wrapper_ant_182_jdk16.cmd" ..... Regards, Antoine On 2/2/2011 8:13 AM, Sachin Gurumukhi wrote: > Hi Antoine, > > I haven't used wrapper script. So I don't have idea on it. Can you please elaborate on this. How Should I proceed with wrapper script ? > > Regards, > Sachin Gurumukhi > > Hello Sachin, > > I do this using different wrapper scripts around ant. I set JAVA_HOME to > the appropriate value in the wrapper script. The antbuilder has an > attribute to point to a particular script. > > There is a bug report in JIRA with a patch adding functionality to set > environment variables for the exec and the ant builders in the cruise > control configuration file which would be a nicer way to do this. > > Regards, > > Antoine > > On 2/1/2011 8:26 AM, Sachin Gurumukhi wrote: >> Hi, >> >> I am having cruise control server. In that I have added four >> projects. All these projects are working on JAVA 1.5 . Now I have >> added 5^th project which requires JAVA 1.6 . So is there any way out >> to configure multiple JAVA for cruise control. >> >> Please let me know. >> >> Thanks& Regards, >> >> Sachin Gurumukhi >> ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d