You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "stevedlawrence (via GitHub)" <gi...@apache.org> on 2024/01/23 15:50:36 UTC

[I] Main schema found in jar leads to java.lang.IllegalArgumentException: URI is not hierarchical [daffodil-sbt]

stevedlawrence opened a new issue, #3:
URL: https://github.com/apache/daffodil-sbt/issues/3

   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.


-- 
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: commits-unsubscribe@daffodil.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Main schema found in jar leads to java.lang.IllegalArgumentException: URI is not hierarchical [daffodil-sbt]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence closed issue #3: Main schema found in jar leads to java.lang.IllegalArgumentException: URI is not hierarchical
URL: https://github.com/apache/daffodil-sbt/issues/3


-- 
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: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Main schema found in jar leads to java.lang.IllegalArgumentException: URI is not hierarchical [daffodil-sbt]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence closed issue #3: Main schema found in jar leads to java.lang.IllegalArgumentException: URI is not hierarchical
URL: https://github.com/apache/daffodil-sbt/issues/3


-- 
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: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org