mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +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">
|
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
|
||||||
<code-name-base>org.sleuthkit.autopsy.corelibs</code-name-base>
|
<code-name-base>org.sleuthkit.autopsy.corelibs</code-name-base>
|
||||||
<suite-component/>
|
<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-dependencies>
|
||||||
<test-type>
|
<test-type>
|
||||||
<name>unit</name>
|
<name>unit</name>
|
||||||
|
@ -4,3 +4,4 @@ OpenIDE-Module-Long-Description=\
|
|||||||
The libraries can also be imported by other modules.
|
The libraries can also be imported by other modules.
|
||||||
OpenIDE-Module-Name=Autopsy-CoreLibs
|
OpenIDE-Module-Name=Autopsy-CoreLibs
|
||||||
OpenIDE-Module-Short-Description=Autopsy Core module external libraries
|
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 com.sun.javafx.PlatformUtil;
|
||||||
import org.hyperic.sigar.Sigar;
|
import org.hyperic.sigar.Sigar;
|
||||||
|
import org.openide.util.NbBundle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper over Sigar instrumentation class to facilitate dll loading. Our setup
|
* Wrapper over Sigar instrumentation class to facilitate dll loading. Our setup
|
||||||
@ -51,10 +52,10 @@ public class SigarLoader {
|
|||||||
sigar.enableLogging(false); //forces a test
|
sigar.enableLogging(false); //forces a test
|
||||||
|
|
||||||
} catch (UnsatisfiedLinkError ex) {
|
} 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());
|
System.out.println(msg + ex.toString());
|
||||||
} catch (Exception ex) {
|
} 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());
|
System.out.println(msg + ex.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user