Menu

#5 MDIBFileReaderUtil.getDescriptionFromFile should get an InputStream or URI

Beta04
closed
Feature (2)
2014-11-11
2014-10-28
No

MDIBFileReaderUtil.getDescriptionFromFile(File) expects a File. When getting a file from inside a jar (e.g. from src/main/resources) with ClassLoader.getResource(String) the resulting URL contains a "!". That leads to an error in getDescriptionFromFile(File) in this line: unmarshaller.unmarshal(f).

It would be nice to create a method which expects an InputStream or URI, so we are able to load a resource from anywhere. This is already done in BicepsClientFramework.setup(String[], URI) with another configuration file.

Discussion

  • Stefan Schlichting

    I will try to integrate it into the beta04.

     
  • Stefan Schlichting

    • labels: --> Feature
    • status: open --> accepted
    • assigned_to: Stefan Schlichting
    • Milestone: Beta03 --> Beta04
     
  • Stefan Schlichting

    • status: accepted --> closed
     
  • Stefan Schlichting

    Will be included in the Beta04 release.

     

Log in to post a comment.

MongoDB Logo MongoDB