Title: [621] trunk/activerecord-jdbc/Rakefile: Getting weird error w/ hoe when running rake now (grrr),
Revision
621
Author
nicksieger
Date
2007-06-11 12:49:25 -0400 (Mon, 11 Jun 2007)

Log Message

Getting weird error w/ hoe when running rake now (grrr),
so ignoring exceptions for now

Modified Paths

Diff

Modified: trunk/activerecord-jdbc/Rakefile (620 => 621)


--- trunk/activerecord-jdbc/Rakefile	2007-06-11 16:25:24 UTC (rev 620)
+++ trunk/activerecord-jdbc/Rakefile	2007-06-11 16:49:25 UTC (rev 621)
@@ -73,16 +73,16 @@
   t.libs << 'test'
 end
 
-begin
-  MANIFEST = FileList["History.txt", "Manifest.txt", "README.txt", 
-    "Rakefile", "LICENSE", "lib/**/*.rb", "lib/jdbc_adapter_internal.jar", "test/**/*.rb", "lib/**/*.rake"]
+MANIFEST = FileList["History.txt", "Manifest.txt", "README.txt", 
+  "Rakefile", "LICENSE", "lib/**/*.rb", "lib/jdbc_adapter_internal.jar", "test/**/*.rb", "lib/**/*.rake"]
 
-  file "Manifest.txt" => :manifest
-  task :manifest do
-    File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
-  end
-  Rake::Task['manifest'].invoke # Always regen manifest, so Hoe has up-to-date list of files
+file "Manifest.txt" => :manifest
+task :manifest do
+  File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
+end
+Rake::Task['manifest'].invoke # Always regen manifest, so Hoe has up-to-date list of files
 
+begin
   require 'hoe'
   Hoe.new("ActiveRecord-JDBC", "0.4") do |p|
     p.rubyforge_name = "jruby-extras"
@@ -95,4 +95,6 @@
   end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
 rescue LoadError
   puts "You really need Hoe installed to be able to package this gem"
+rescue => e
+  puts "ignoring error while loading hoe: #{e.to_s}"
 end
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to