Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.5
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The ant task clean-all requires git to succeed:
init:
prepare-bin-jruby:
clean:
need-clean-ng:
clean-ng:
clean-tzdata:
[echo] Reset joda-time jar
[exec] Execute failed: java.io.IOException: Cannot run program "git": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
dist-clean:
clear-specs:
clean-all:
BUILD SUCCESSFUL
Total time: 578 milliseconds
The same fix provided for JRUBY-5837 should be applied for running ant clean-all, i.e.:
replace in build.xml, line 1783:
<exec executable="git" failonerror="false" failifexecutionfails="false"> <arg line="checkout -- ${build.lib.dir}/joda-time-${joda.time.version}.jar"/> </exec>
by:
<exec osfamily="unix" executable="/bin/sh" failonerror="false" failifexecutionfails="false"> <arg line="-c 'git checkout -- ${build.lib.dir}/joda-time-${joda.time.version}.jar'"/> </exec> <exec osfamily="windows" executable="cmd" failonerror="false" failifexecutionfails="false"> <arg line="/c git checkout -- ${build.lib.dir}/joda-time-${joda.time.version}.jar"/> </exec>
Jürgen,
Would you like to submit a git patch (ironic?) so that you can get the credit for the fix? Otherwise, I'll go ahead and make this change and credit you in the commit message.