stevedlawrence opened a new pull request, #1285:
URL: https://github.com/apache/daffodil/pull/1285

   Some API users want to find a DFDL schema resource on the classpath (e.g. by 
using Class.getResource). However, this results in an absolute URI which when 
passed to compileSource cannot be depersonalized in some cases and leads to 
verbose diagnostic paths. This is also one issue that prevents reproducible 
saved parsers since these absolute paths are included in the saved parser and 
are specific to the build environment.
   
   To fix this, this adds a new compileResource API function that accepts a 
resource path. This new API calls getResource instead of the user having to 
call it, and it creates a URISchemaSource with the resulting URI and diagnostic 
path context set to the resource path. This allows the diagnostic paths to be 
depersonalized and is one step towards reproducible saved parsers.
   
   DAFFODIL-2919


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to