If the resource path in daffodilPackageBinInfos resolves to a schema in a jar on the classpath (for example, if the root schema comes from a dependency or because exportJars := true), then sbt packageDaffodilBin fails with the error:
[error] Exception in thread "main" java.lang.IllegalArgumentException: URI is not hierarchical
[error] at java.io.File.<init>(File.java:420)
This is probably because we pass the result of getRequireResource to the File constructor, which compileFile expects. But the resources is a jar URI and so does not work. Hopefully we can just switch to compileSource which accepts a URI.
If the resource path in
daffodilPackageBinInfos
resolves to a schema in a jar on the classpath (for example, if the root schema comes from a dependency or becauseexportJars := true
), thensbt packageDaffodilBin
fails with the error:This is probably because we pass the result of
getRequireResource
to theFile
constructor, whichcompileFile
expects. But the resources is a jar URI and so does not work. Hopefully we can just switch tocompileSource
which accepts a URI.