Permalink
Browse files

JRUBY-4865: Ant.load_from_ant is broken on Windows

  • Loading branch information...
1 parent 9bbf8ec commit 73a96d6433c69c67c670dda5c93fae860df52259 @vvs vvs committed Jun 11, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/ruby/site_ruby/shared/ant.rb
@@ -7,6 +7,10 @@ def self.load_from_ant
listing_path = nil
jar_path = nil
diag.readlines.each do |line|
+
+ # workaround for JRUBY-4814 (IO.popen doesnt convert CRLF to LF on Windows)
+ line.chomp!
+
if line =~ /^ant\.home: (.*)$/ && !defined?(ANT_HOME)
const_set(:ANT_HOME, $1)
elsif line =~ /Tasks availability/

0 comments on commit 73a96d6

Please sign in to comment.