Uploaded image for project: 'Maven Invoker Plugin'
  1. Maven Invoker Plugin
  2. MINVOKER-6

Add current's project test classpath to the Bean Shell interpreter classpath

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.2
    • None

    Description

      It would be interesting to add the test classpath of the current maven project to the Bean Shell's interpreter classpath.

      This would allow developing some utilities classes (project specific assertions for example) and use them effectively in the post (or pre) Bean Shell scripts..

      I tried it and it is fairly easy to do using the bsh.BshClassManager#addClassPath(java.net.URL path) method. Just remember to add a trailing "/" at the end of folder URLs for the class loader to pick them.

      I could possibly look into providing a patch, so far I worked against the 1.0 tag. Don't know how I would effectively test that though...

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            sleberrigaud Samuel Le Berrigaud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: