Commit 8379fe33 authored by Munilla Christophe's avatar Munilla Christophe
Browse files

- fix sonar error : exclude not found dependencies from implementation-nuxeo's examples module

- fix  findClass methods of FraSCAtiOSGiClassLoader and FraSCAtoOSGiClassloaderManager classes : handle empty package name 
- implementation.scripts is available
parent 016d6cfc
......@@ -132,6 +132,28 @@
<artifactId>nuxeo-runtime-test</artifactId>
<version>${nuxeo.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server-standalone</artifactId>
</exclusion>
<exclusion>
<groupId>org.milyn</groupId>
<artifactId>milyn-magger</artifactId>
</exclusion>
<exclusion>
<groupId>org.milyn</groupId>
<artifactId>flute</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml</groupId>
<artifactId>xsom</artifactId>
</exclusion>
<exclusion>
<groupId>org.osgi</groupId>
<artifactId>osgi-core</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
......
......@@ -150,7 +150,8 @@ public class FraSCAtiOSGiClassLoader extends URLClassLoader
{
URL classFileNameURL = null;
String packageName = className.substring(0, className.lastIndexOf('.'));
int index = className.lastIndexOf('.');
String packageName = className.substring(0,index>-1?index:0);
String classFileName = className.replace('.', '/') + ".class";
String classFileSimpleName = classFileName.substring(classFileName.lastIndexOf('/') + 1);
......
......@@ -246,7 +246,8 @@ public class FraSCAtiOSGiClassLoaderManager
Class<?> clazz = loaded.get(name);
if(clazz == null)
{
String packageName = name.substring(0,name.lastIndexOf('.'));
int index = name.lastIndexOf('.');
String packageName = name.substring(0,index>-1?index:0);
List<FraSCAtiOSGiClassLoader> loaders = packagesMap.get(packageName);
if(loaders != null)
{
......
......@@ -118,6 +118,9 @@
<instructions>
<Import-Package></Import-Package>
<Frascati-Fragment>true</Frascati-Fragment>
<Frascati-JTCompil>
jruby-complete-1.3.1.jar
</Frascati-JTCompil>
</instructions>
</configuration>
</plugin>
......
......@@ -82,7 +82,7 @@
<module>frascati-jmx-test</module>
<!--<module>frascati-explorer-test</module>-->
<module>implementation-bpel-test</module>
<!--<module>implementation-scripts-test</module>-->
<module>implementation-scripts-test</module>
<module>implementation-xquery-test</module>
<module>implementation-spring-test</module>
<module>implementation-osgi-test</module>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment