Permalink
Browse files

Fix for _buildr and _jbuildr preventing them from loading source file…

…s from any installed Buildr gem.

git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@748440 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 052bce4 commit 39044ff3f28500ba32d347feec36f3aae1b6186c Assaf Arkin committed Feb 27, 2009
Showing with 3 additions and 0 deletions.
  1. +1 −0 _buildr
  2. +2 −0 _jbuildr
View
@@ -23,6 +23,7 @@ spec = Gem::Specification.load(File.join(File.dirname(__FILE__), 'buildr.gemspec
spec.dependencies.each do |dep|
gem dep.name, dep.version_requirements.to_s
end
+Gem.loaded_specs['buildr'] = spec # Prevents RubyGem from loading files from installed Buildr gems
require 'buildr'
Buildr.application.run
View
@@ -14,6 +14,7 @@
# License for the specific language governing permissions and limitations under
# the License.
+
# Run buildr from source, specifically for testing stuff without doing a rake install.
require 'rubygems'
@@ -22,6 +23,7 @@ spec = Gem::Specification.load(File.join(File.dirname(__FILE__), 'buildr.gemspec
spec.dependencies.each do |dep|
gem dep.name, dep.version_requirements.to_s
end
+Gem.loaded_specs['buildr'] = spec # Prevents RubyGem from loading files from installed Buildr gems
require 'buildr'
Buildr.application.run

0 comments on commit 39044ff

Please sign in to comment.