Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-226

Support uplaoding of rules from any jar on the classpath by supplying a list of InputStream

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 2.1.1
    • 2.1.0
    • Tools
    • None

    Description

      The current Submit API provides BMUNit with the capability to load rules from a disk file or a resource file found in the classloader context of the current thread via method addRulesFromFiles(List<String> filePaths). Unfortunately, this API does not allow other test driver code to load rule sets located in jars not directly accessible via the context class loader (this is specifically a problem for Arquilian deployed tests). The Submit API could usefully be extended so that it is willing to load rules via an InputStream i.e. with API addRulesFromResources(List<InputStream> resourceStreams). This means that any client which can access the resource and open an input stream to it can also provide it as a source for the rule text to be uploaded. A corresponding removal method deleteRulesFromResources(List<InputStream> resourceStreams) is alos required.

      Attachments

        Activity

          People

            rhn-engineering-adinn Andrew Dinn
            rhn-engineering-adinn Andrew Dinn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: