From 55002f193078cdeb5e0a08e0a092e4de9c17d86c Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 14 Apr 2010 13:46:28 -0700 Subject: [PATCH] (SIGAR-213) check ENV.ANT_HOME/lib for junit in Main-Class --- bindings/java/src/org/hyperic/sigar/cmd/Runner.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bindings/java/src/org/hyperic/sigar/cmd/Runner.java b/bindings/java/src/org/hyperic/sigar/cmd/Runner.java index a7924d63..9ae33474 100644 --- a/bindings/java/src/org/hyperic/sigar/cmd/Runner.java +++ b/bindings/java/src/org/hyperic/sigar/cmd/Runner.java @@ -182,6 +182,13 @@ public class Runner { } } } + + if (missingJars()) { + String home = System.getenv("ANT_HOME"); //check for junit.jar + if (home != null) { + addJarDir(home + "/lib"); + } + } } Class cmd = null;