- From: Seth <seth.brayman@rackspace.com>
- Date: Wed, 21 Dec 2011 16:19:58 -0600
- To: <xproc-dev@w3.org>
- CC: David Cramer <david.cramer@rackspace.com>
- Message-ID: <4EF25B8E.8050203@rackspace.com>
Hello All, New to the list. I would like to pass a path to a pipeline file that is within a jar, like this: file:/Users/sbrayman/.m2/repository/com/rackspace/cloud/api/clouddocs-maven-plugin/1.0.9-SNAPSHOT/clouddocs-maven-plugin-1.0.9-SNAPSHOT.jar!/test.xpl Which is generated by: String pathToPipelineFile = this.getClass().getResource("/test.xpl").getPath().toString(); However, I get a file not found exception. If I pass a path outside of the jar it works fine, like the following: /Users/sbrayman/Documents/workspace/rc-maven-cloud-docs/src/main/resources/test.xpl Just to be sure I also tried: file:///Users/sbrayman/.m2/repository/com/rackspace/cloud/api/clouddocs-maven-plugin/1.0.9-SNAPSHOT/clouddocs-maven-plugin-1.0.9-SNAPSHOT.jar!/test.xpl file://Users/sbrayman/.m2/repository/com/rackspace/cloud/api/clouddocs-maven-plugin/1.0.9-SNAPSHOT/clouddocs-maven-plugin-1.0.9-SNAPSHOT.jar!/test.xpl file:Users/sbrayman/.m2/repository/com/rackspace/cloud/api/clouddocs-maven-plugin/1.0.9-SNAPSHOT/clouddocs-maven-plugin-1.0.9-SNAPSHOT.jar!/test.xpl /Users/sbrayman/.m2/repository/com/rackspace/cloud/api/clouddocs-maven-plugin/1.0.9-SNAPSHOT/clouddocs-maven-plugin-1.0.9-SNAPSHOT.jar!/test.xpl Users/sbrayman/.m2/repository/com/rackspace/cloud/api/clouddocs-maven-plugin/1.0.9-SNAPSHOT/clouddocs-maven-plugin-1.0.9-SNAPSHOT.jar!/test.xpl I was wondering if a path that references a file inside a jar is supported? Here is the full stack trace http://pastebin.com/hTM6N37U. I am hoping someone has run into this before Thanks much, Seth Brayman
Received on Thursday, 22 December 2011 17:32:51 UTC