Jürgen Herzog created JRUBY-6349:
------------------------------------
Summary: Running 'ant clean-all' in git-free environments fails
Key: JRUBY-6349
URL: https://jira.codehaus.org/browse/JRUBY-6349
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.5
Reporter: Jürgen Herzog
Assignee: Thomas E Enebo
Priority: Minor
The ant task clean-all requires git to succeed:
{noformat}
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
{noformat}
The same fix provided for JRUBY-5837 should be applied for running ant
clean-all, i.e.:
replace in build.xml, line 1783:
{code:xml}
<exec executable="git" failonerror="false" failifexecutionfails="false">
<arg line="checkout -- ${build.lib.dir}/joda-time-${joda.time.version}.jar"/>
</exec>
{code}
by:
{code:xml}
<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>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email