Skip to content

Commit

Permalink
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/pom.rb
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ def initialize( name, version, default_spec = true )
ImportedGem.new( 'jar-dependencies', '${jar-dependencies.version}' ),
ImportedGem.new( 'net-telnet', '0.1.1'),
ImportedGem.new( 'did_you_mean', '1.0.1'),
ImportedGem.new( 'rake-ant', '1.0.1'),
ImportedGem.new( 'rake-ant', '1.0.4'),
]

project 'JRuby Lib Setup' do
2 changes: 1 addition & 1 deletion lib/pom.xml
Original file line number Diff line number Diff line change
@@ -190,7 +190,7 @@ DO NOT MODIFIY - GENERATED CODE
<dependency>
<groupId>rubygems</groupId>
<artifactId>rake-ant</artifactId>
<version>1.0.0</version>
<version>1.0.4</version>
<type>gem</type>
<scope>provided</scope>
<exclusions>
8 changes: 6 additions & 2 deletions spec/java_integration/ant/ant_spec.rb
Original file line number Diff line number Diff line change
@@ -22,8 +22,12 @@
after :each do
ENV['JAVA_HOME'] = @previous_java_home
Ant.instance_eval do
remove_const(:JAVA_HOME)
const_set(:JAVA_HOME, @previous_java_home)
begin
remove_const(:JAVA_HOME)
const_set(:JAVA_HOME, @previous_java_home)
rescue NameError
# ignore, JAVA_HOME constant is not necessarily set now
end
end
end

1 change: 0 additions & 1 deletion spec/java_integration/ant/rake_spec.rb
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
require 'rake'
# Do this hoo-hah with import because we don't want Rake's version of "import".
def import(*args); java_import(*args); end
require 'ant/rake'

describe Ant, "Rake helpers" do
include Ant::RSpec::AntExampleGroup
2 changes: 1 addition & 1 deletion spec/java_integration/ant_spec_helper.rb
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
require 'ant'
require 'tmpdir'

class Ant
class Rake::Ant
module RSpec
module AntExampleGroup
def self.included(example_group)

0 comments on commit 4b6695f

Please sign in to comment.