Private
Public Access
2
0

java: bypass version check for packages that don't have version specified

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Stefan Andritoiu
2017-03-24 16:33:22 +02:00
committed by Brendan Le Foll
parent a3f5db1d84
commit d2bbfe376d

View File

@@ -97,6 +97,8 @@ class Spi;
System.exit(1);
}
if((mraa.class.getPackage().getSpecificationVersion() != null)
&& (mraa.getVersion() != null)){
String javaAPIVersion = mraa.class.getPackage().getSpecificationVersion();
String nativeAPIVersion = mraa.getVersion().substring(1);
@@ -126,4 +128,5 @@ class Spi;
System.err.println("Native library version is " + nativeAPIVersion + ". Java library version is " + javaAPIVersion + ".");
}
}
}
%}