You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/11/16 19:23:07 UTC

[jira] Commented: (MPCRUISECONTROL-15) Lost script extension when use "maven cruisecontrol:configure" command

The following comment has been added to this issue:

     Author: David Eric Pugh
    Created: Tue, 16 Nov 2004 1:22 PM
       Body:
This is a recent change by CC.  It requires the script file to have the .sh or .bat hardcoded in the config...
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPCRUISECONTROL-15?page=comments#action_26480

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPCRUISECONTROL-15

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPCRUISECONTROL-15
    Summary: Lost script extension when use "maven cruisecontrol:configure" command
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: 4 hours
 Time Spent: Unknown
  Remaining: 4 hours

    Project: maven-cruisecontrol-plugin
   Fix Fors:
             1.4
   Versions:
             1.4

   Assignee: 
   Reporter: Qing Han

    Created: Thu, 11 Nov 2004 11:10 PM
    Updated: Tue, 16 Nov 2004 1:22 PM
Environment: Windown 2000 pro 
JDK1.4.1
Maven1.0
maven-cc-plugin 1.4

Description:
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>
=====================================================



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org