|
Hi Shay,
I've just tried a little thing : Breakpoint in my client app code on line : conf.addScan("entities"); Eclipse debbugger says that url = vfszip:/D:/DEV/jboss-5.0.1.GA/server/default/deploy/CompassTest2EAR.ear/CompassTest2.jar/entities/ as I expected that. I turned it in order to get url = file:/D:/DEV/jboss-5.0.1.GA/server/default/deploy/CompassTest2EAR.ear/CompassTest2.jar/entities/ but... never goes into : getMappingBinding().addInputStream(si.getInputStream(), si.getName()); (in addScan method). I Will have a look to new vfszip next week... have a nice day I think that its probably because the basePackage needs to be removed from the end of the url (similar to what is done at the beginning of the method).
Hi,
Sorry for the long time without answer... I've taken the test you've suggested and it seems to be OK. Just added in ScannerFactoy class : ... And items in the package were found successfuly. John Can you simply upload the new ScannerFactory class (just attach it to the issue)? I will make the relevant changes.
Fixed and committed. Will be available in the next nightly build of 2.3. Would be great if you can test it.
|
||||||||||||||||||||||||||||||||||||||||||||
I was wondering if you can maybe try and help me resolve this issue. The ScannerFactory decides which one to scanner to use (either file or jar). I believe we need to use the jar scanner in this case (I hope vfszip supports it). I think in this case we can do the same hack that the ScannerFactory does for urls that end with "!/" to vfszip. Can you give it a go?
Thanks in advance,
Shay