mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-11 23:46:15 +00:00
Pulled strings into Bundle.
Created _ja. Added org.openide.util as a dependency for this module in project.xml.
This commit is contained in:
parent
63e0f24581
commit
a96d29e59f
@ -5,7 +5,16 @@
|
||||
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
|
||||
<code-name-base>org.sleuthkit.autopsy.corelibs</code-name-base>
|
||||
<suite-component/>
|
||||
<module-dependencies/>
|
||||
<module-dependencies>
|
||||
<dependency>
|
||||
<code-name-base>org.openide.util</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>8.25.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
</module-dependencies>
|
||||
<test-dependencies>
|
||||
<test-type>
|
||||
<name>unit</name>
|
||||
|
@ -4,3 +4,4 @@ OpenIDE-Module-Long-Description=\
|
||||
The libraries can also be imported by other modules.
|
||||
OpenIDE-Module-Name=Autopsy-CoreLibs
|
||||
OpenIDE-Module-Short-Description=Autopsy Core module external libraries
|
||||
SigarLoader.linkErr.msg=Could not load sigar library for your environment (non-critical), OS-level metrics will be unavailable.
|
||||
|
@ -20,6 +20,7 @@ package org.sleuthkit.autopsy.corelibs;
|
||||
|
||||
import com.sun.javafx.PlatformUtil;
|
||||
import org.hyperic.sigar.Sigar;
|
||||
import org.openide.util.NbBundle;
|
||||
|
||||
/**
|
||||
* Wrapper over Sigar instrumentation class to facilitate dll loading. Our setup
|
||||
@ -51,10 +52,10 @@ public class SigarLoader {
|
||||
sigar.enableLogging(false); //forces a test
|
||||
|
||||
} catch (UnsatisfiedLinkError ex) {
|
||||
String msg = "Could not load sigar library for your environment (non-critical), OS-level metrics will be unavailable. ";
|
||||
String msg = NbBundle.getMessage(SigarLoader.class, "SigarLoader.linkErr.msg");
|
||||
System.out.println(msg + ex.toString());
|
||||
} catch (Exception ex) {
|
||||
String msg = "Could not load sigar library for your environment (non-critical), OS-level metrics will be unavailable. ";
|
||||
String msg = NbBundle.getMessage(SigarLoader.class, "SigarLoader.linkErr.msg");
|
||||
System.out.println(msg + ex.toString());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user