buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Toulme (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BUILDR-312) Add hook in spec_helpers.rb to let plugins add a few instructions before loading the sandbox (and starting Java)
Date Fri, 11 Sep 2009 14:18:57 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Antoine Toulme updated BUILDR-312:
----------------------------------

    Attachment: spec_helpers

Attached the patch.

For example, in my own spec_helpers, I have now this:

unless defined?(SpecHelpers)
  
  module SandboxHook
    
    def SandboxHook.included(spec_helpers)
      # Make sure to load from these paths first, we don't want to load any
      # code from Gem library.
      $LOAD_PATH.unshift File.expand_path('../lib', File.dirname(__FILE__))
      require 'buildr4osgi'
    end
  end
  
  require File.join(File.dirname(__FILE__), "/../buildr/spec/spec_helpers.rb")

  [..]
end

> Add hook in spec_helpers.rb to let plugins add a few instructions before loading the
sandbox (and starting Java)
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: BUILDR-312
>                 URL: https://issues.apache.org/jira/browse/BUILDR-312
>             Project: Buildr
>          Issue Type: Improvement
>    Affects Versions: 1.3.4
>            Reporter: Antoine Toulme
>            Priority: Minor
>         Attachments: spec_helpers
>
>
> See discussion here:
> http://mail-archives.apache.org/mod_mbox/buildr-dev/200909.mbox/%3cf97124910909101611w759088b0y4c31f985633b1e1d@mail.gmail.com%3e
> The patch attached to this bug fixes the issue for me. I just need to define my own SandboxHook
to get it done, using the class method included to do some manipulations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message