Issue Details (XML | Word | Printable)

Key: MPCRUISECONTROL-15
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: David Eric Pugh
Reporter: Qing Han
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x CruiseControl Plugin

Lost script extension when use "maven cruisecontrol:configure" command

Created: 11/Nov/04 11:10 PM   Updated: 16/Nov/04 01:31 PM
Component/s: None
Affects Version/s: 1.4
Fix Version/s: 1.6

Time Tracking:
Original Estimate: 4 hours
Original Estimate - 4 hours
Remaining Estimate: 4 hours
Remaining Estimate - 4 hours
Time Spent: Not Specified
Remaining Estimate - 4 hours

Environment:
Windown 2000 pro
JDK1.4.1
Maven1.0
maven-cc-plugin 1.4


 Description  « Hide
When I defined maven's config files(project.xml,project.properties,build.properties),
maven's all tasks run ok
then I use:
maven cruisecontrol:configure
to generate maven-cruisecontrol-plugin's config file(cruisecontrol.xml).
then I run it:
maven cruisecontrol:run

BUT an error occured:
===========================
Project - exception attempting build in project XXX
net.sourceforge.cruisecontrol.CruiseControlException: Encountered an IO exception while attempting to execute Maven. CruiseControl cannot continue. : CreateProcess: D:\Maven\bin\maven -Dcclastbuildtimestamp=20041112000000 -Dlabel=build.1 -Dcclastgoodbuildtimestamp=20041112000000 -Dlastbuildsuccessful=true "-Dcvstimestamp=2004-11-12 02:01:23 GMT" -Dcctimestamp=20041112100123 -X -b -p project.xml scm:update-project error=193
at net.sourceforge.cruisecontrol.builders.MavenBuilder.build(MavenBuilder.java:120)
at net.sourceforge.cruisecontrol.Schedule.build(Schedule.java:144)
at net.sourceforge.cruisecontrol.Project.build(Project.java:195)
at net.sourceforge.cruisecontrol.Project.execute(Project.java:153)
at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:66)
at java.lang.Thread.run(Thread.java:536)
===============
After I wast many time to fix this problem,I found the script extension lost
in the cruisecontrol.xml:

Default generated:
================================
<schedule interval="300">
<maven goal="scm:update-project|clean test|site:deploy" projectfile="project.xml" mavenscript="D:/Maven/bin/maven">
</maven>
</schedule>
=================================

when I add ".bat" to the mavenscript,it's OK now
current:
=====================================================
<schedule interval="300">
<maven goal="scm:update-project|clean test|site:deploy" projectfile="project.xml" mavenscript="D:/Maven/bin/maven.bat">
</maven>
</schedule>
=====================================================



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Eric Pugh added a comment - 16/Nov/04 01:22 PM
This is a recent change by CC. It requires the script file to have the .sh or .bat hardcoded in the config...

David Eric Pugh added a comment - 16/Nov/04 01:31 PM
Try out CVS HEAD and please confirm the fix!