The lookup of the class path in the method com.oneandone.ejbcdiunit.cfganalyzer.TestConfigAnalyzer#isCdiClass will always fall if the url contains a space:
URL location = c.getProtectionDomain().getCodeSource().getLocation()
--> will return an url with the space escaped (%20), "file:/my%20folder"
cdiClasspathEntries
--> contains the url without escaping: "file:/my folder"
The lookup of the class path in the method
com.oneandone.ejbcdiunit.cfganalyzer.TestConfigAnalyzer#isCdiClass
will always fall if the url contains a space:URL location = c.getProtectionDomain().getCodeSource().getLocation()
--> will return an url with the space escaped (%20), "file:/my%20folder"cdiClasspathEntries
--> contains the url without escaping: "file:/my folder"