Skip to content

Commit

Permalink
JRUBY-4865: Ant.load_from_ant is broken on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vvs committed Jun 11, 2010
1 parent 9bbf8ec commit 73a96d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ruby/site_ruby/shared/ant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 73a96d6

Please sign in to comment.