Pulled strings into Bundle.

Created _ja.
Added org.openide.util as a dependency for this module in project.xml.
This commit is contained in:
Nick Davis 2014-02-28 16:07:39 -05:00
parent 63e0f24581
commit a96d29e59f
4 changed files with 14 additions and 3 deletions

View File

@ -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>

View File

@ -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.

View File

@ -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());
}
}