[ 
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/%[email protected]%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.

Reply via email to