Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
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...