use SigarLoader.getLocation

This commit is contained in:
Doug MacEachern 2004-07-23 01:07:39 +00:00
parent 2657e169f9
commit d65cb6094c
1 changed files with 1 additions and 3 deletions

View File

@ -26,10 +26,8 @@ public class TestProcFd extends SigarTestCase {
long pid = sigar.getPid(); long pid = sigar.getPid();
long total = sigar.getProcFd(pid).getTotal(); long total = sigar.getProcFd(pid).getTotal();
String sigarJar =
new SigarLoader(Sigar.class).findJarPath("sigar.jar");
File file = new File(sigarJar + File.separator + "sigar.jar"); File file = new File(SigarLoader.getLocation(), "sigar.jar");
traceln("Opening " + file); traceln("Opening " + file);