Hi Marshall, the problem is in the following part of Jenkins console output:
Caused by: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' > in classpath or > '/home/hudson/hudson-slave/workspace/UIMA%20Addons/Solrcas/src/test/resources/org/apache/uima/solrcas/conf/' The String passed to UriUtils.create(string) is: file:///home/hudson/hudson-slave/workspace/UIMA Addons/Solrcas/src/test/resources/org/apache/uima/solrcas/conf which is converted into: file:///home/hudson/hudson-slave/workspace/UIMA%20Addons/Solrcas/src/test/resources/org/apache/uima/solrcas/conf I think the problem is in using the url.getFile() method while, as you suggested, using new File(uri).getAbsolutePath() would convert blanks properly. Thanks, Tommaso 2011/4/5 Marshall Schor <[email protected]> > > > On 4/5/2011 6:21 AM, Tommaso Teofili wrote: > > Hi all, > > going through the Jenkins failure strack trace for Solrcas test [1] I see > > the problem of URI.create methods has been resolved in UIMA-2097 [2] > adding > > encoded versions of special characters like ' ' (space) to %20, this is > good > > for http:// protocol but I don't think it works for the file:// protocol > as > > the space character gets converted in a OS dependent way. > > Can you say a bit more? > > What I think is the case: > > If you *don't* encode blanks, when you convert a string to a URI using > aUrl.toURI() or new URI(string), an exception is thrown. > > When a URI with a blank encoded as %20 with the file:// protocol is used in > new > File (aUri), that should work in the sense that the %20 is replace with a > "blank". > > -Marshall > > > What do you think? > > Tommaso > > > > [1] : > > > https://hudson.apache.org/hudson/job/UIMA%20Addons/8/org.apache.uima$Solrcas/console > > [2] : https://issues.apache.org/jira/browse/UIMA-2097 > > >
