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:
committed by
Brendan Le Foll
parent
a3f5db1d84
commit
d2bbfe376d
@@ -97,6 +97,8 @@ class Spi;
|
|||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if((mraa.class.getPackage().getSpecificationVersion() != null)
|
||||||
|
&& (mraa.getVersion() != null)){
|
||||||
String javaAPIVersion = mraa.class.getPackage().getSpecificationVersion();
|
String javaAPIVersion = mraa.class.getPackage().getSpecificationVersion();
|
||||||
String nativeAPIVersion = mraa.getVersion().substring(1);
|
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 + ".");
|
System.err.println("Native library version is " + nativeAPIVersion + ". Java library version is " + javaAPIVersion + ".");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
%}
|
%}
|
||||||
|
|||||||
Reference in New Issue
Block a user