Ticket #223 (new defect)

Opened 3 months ago

Last modified 3 months ago

Cruise Control Builder Plugin

Reported by: anonymous Assigned to: hans
Priority: major Milestone: 2.3.1
Component: cruisecontrol-builder-plugin Version: 2.3.0
Keywords: Cc:

Description

The Cruise Control Builder Plugin is not shipped with the binary version 2.7.1. for Windows. Installing it to [cruise_control_home]/lib does not work. Builds fail with the following error "java.io.IOException: Cannot run program "phing": CreateProcess error=2".

Attachments

control.log (3.0 kB) - added by anonymous on 02/19/08 11:31:59.
Cruise Control Log

Change History

02/19/08 11:31:59 changed by anonymous

  • attachment control.log added.

Cruise Control Log

02/19/08 12:12:26 changed by hans

I assume that phing is correctly installed on the windows machine & can be run from the commandline?

02/25/08 09:04:42 changed by anonymous

I finally got phing and cruise control to work together! Thank you for your speedy reply and of course for Phing. Here are some things I found out, that might be helpful for others, also I think there might be a bug in phing/tasks/ext/phpunit/PHPUnitTask.php.

I use Windows 2003 Server, Phing 2.3.0 installed with pear, PHPUnit 3.2.11 installed with pear, Cruise Control 2.7.1 (Windows binary).

1) I forgot to set the JAVA_HOME environment variable. 2) Phing would not run from the command line. I found that if I patched PHPUnitTask.php to set PHPUnitUtil::$installedVersion = 3; PHPUnitUtil::$installedMinorVersion = 2; (which reflects the PHPUnit version installed), phing would run fine. 3) the Phing Builder Plugin for Cruise Control is not part of the binary distribution I used. I downloaded it and installed it to the lib directory of Cruise Control. 4) In addition to what is documented about Cruise Control's config.xml in the trac wiki I found that the <phing > Element must include the attribute phingscript and its value must reflect the complete path to phing.bat in my case: <phing phingscript="C:\PHP5\phing.bat" ...>

02/25/08 12:02:51 changed by hans

Thank you for the follow up. It sounds like there's at least 1 phing bug in all of this (related to PHPUnit running on Windows). Maybe we can also update some documentation to help others with this problem in the future. Thanks for the feedback!

02/25/08 12:09:50 changed by mrook

Hm, the PHPUnit bug is strange; the logic to determine the PHPUnit version was changed before 2.3.0 was released, and it should not fail anymore. Could you follow up with the values of $installedVersion and $installedMinorVersion as calculated by the original source?


Add/Change #223 (Cruise Control Builder Plugin)