On 13/04/2007, at 9:07 AM, Robert Egglestone wrote: > 2) Using vendor/rails doesn't work > I'll create a bug report for this, I don't believe we've tried out > yet. > http://rubyforge.org/tracker/index.php? > func=detail&aid=10068&group_id=2014&atid=7857
I can submit a patch for this later today I think. > 3) compile_ruby doesn't work > We tried playing with the ruby preparsing but didn't have much luck as > the ast.ser files would end up with paths which point to the wrong > place. I'd consider it experimental in rails-integration. That explains a lot! :-) Anyway to get the preparser to use paths relative to __FILE__ rather than absolute? > 4) tmp/war not copied > tmp/war is the staging area used by the rails-integration rake > plugin to > assemble the war file before zipping it up Hmm... I don't think I expected this to happen. If you got that from my email I probably expressed myself clumsily. :-) > 5) Adding extra paths to exclude from the war > Another for the feature tracker > http://rubyforge.org/tracker/index.php? > func=detail&aid=10069&group_id=2014&atid=7857 I can probably have a crack at this one as well. I've been looking a bit at Rake's FileSet which does 90% of the heavy lifting. (A lazy programmer is a good programmer.) I'll try to integrate it and add a "include_files"/"exclude_files" directive to war.rb along the lines of: include_files 'app/**' include_files 'vendor/plugins/**' exclude_files 'vendor/plugins/javascript_test/**' exclude_files 'tmp/**' Thoughts? > 6) javascript_test plugin has problems at runtime The problem here was simply that the file was not copied at all. This could be related to the fact that > 7) can't convert Regexp into #<Class:01xbab7b2> > Would it be possible to trace this in a Java debugger to see where > it's > being thrown from? > Are there any unusual routes defined? The stack trace was in my original email. What else could I gather from a Java debugger? Yes we do have a good share of routes but we're not using any esoteric features of routing. My guess is that this is a JRuby bug as the "Regexp it can't convert to #<Class:01xbab7b2>" is actually a regexp defined in the cgi.rb file. And why would it want to convert this into a singleton class? It kinda feels a bit like the good old Weblogic class loader problem back in 2001: "Can't cast com.xyz.Xyz to com.xyz.Xyz". If people remember. :-) >> can't convert Regexp into #<Class:01xbab7b2> >> file:/Users/tirsen/Studios/ice/tmp/war/WEB-INF/lib/jruby- >> complete-0.9.9-SNAPSHOT.jar!/cgi.rb:344:in `gsub' >> file:/Users/tirsen/Studios/ice/tmp/war/WEB-INF/lib/jruby- >> complete-0.9.9-SNAPSHOT.jar!/cgi.rb:344:in `escape' >> generated code (/Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/lib/action_controller/routing.rb:339):15:in >> `generate_raw' >> generated code (/Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/lib/action_controller/routing.rb:348):2:in >> `generate' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_controller/routing.rb:1261:in `send' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_controller/routing.rb:1261:in `generate' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_controller/url_rewriter.rb:104:in `each' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_controller/routing.rb:1263:in `generate' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_controller/url_rewriter.rb:104:in `rewrite_path' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_controller/url_rewriter.rb:69:in `rewrite' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_controller/base.rb:522:in `url_for' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_view/helpers/url_helper.rb:27:in `send' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_view/helpers/url_helper.rb:27:in `url_for' >> /Users/tirsen/Studios/ice/tmp/war/WEB-INF/gems/gems/ >> actionpack-1.13.3/ >> lib/action_view/helpers/url_helper.rb:75:in `link_to' >> #{RAILS_ROOT}/app/views/layouts/application.rhtml:64:in >> `_run_rhtml_47app47views47layouts47application46rhtml' >> ... snip ... _______________________________________________ Jruby-extras-devel mailing list [EMAIL PROTECTED] http://rubyforge.org/mailman/listinfo/jruby-extras-devel
