SLIDER-622 trying to automate adding path
diff --git a/pom.xml b/pom.xml
index a4f8042..2689abf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -131,6 +131,8 @@
     <test.failIfNoTests>true</test.failIfNoTests>
     <test.funtests.failIfNoTests>false</test.funtests.failIfNoTests>
     <test.forkMode>always</test.forkMode>
+    <!-- path environment variable -->
+    <test.env.path>${env.PATH}</test.env.path>    
     
     <!--
     core artifacts
@@ -1316,6 +1318,7 @@
         <module>app-packages/storm</module>
       </modules>
     </profile>
+    
     <profile>
       <id>Windows</id>
       <activation>
@@ -1323,6 +1326,9 @@
           <family>windows</family>
         </os>
       </activation>
+      <properties>
+        <test.env.path>${env.PATH}:{$project.basedir}\bin\windows\${hadoop.version}\bin}</test.env.path>  
+      </properties>
       <modules>
         <module>app-packages/hbase-win</module>
         <module>app-packages/storm-win</module>
diff --git a/slider-core/pom.xml b/slider-core/pom.xml
index 6cf9793..5e1d8ab 100644
--- a/slider-core/pom.xml
+++ b/slider-core/pom.xml
@@ -116,6 +116,9 @@
           <argLine>${test.argLine}</argLine>
           <failIfNoTests>${test.failIfNoTests}</failIfNoTests>
           <redirectTestOutputToFile>${build.redirect.test.output.to.file}</redirectTestOutputToFile>
+          <environmentVariables>
+            <PATH>${test.env.path}</PATH>
+          </environmentVariables>
           <systemPropertyVariables>
             <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
             <java.awt.headless>true</java.awt.headless>
diff --git a/slider-core/src/test/groovy/org/apache/slider/common/tools/TestWindowsSupport.groovy b/slider-core/src/test/groovy/org/apache/slider/common/tools/TestWindowsSupport.groovy
index 9b383f4..cbd79a4 100644
--- a/slider-core/src/test/groovy/org/apache/slider/common/tools/TestWindowsSupport.groovy
+++ b/slider-core/src/test/groovy/org/apache/slider/common/tools/TestWindowsSupport.groovy
@@ -169,4 +169,19 @@
     exec(0, [winUtilsPath, "systeminfo"])
   }
 
+
+  @Test
+  public void testPath() throws Throwable {
+    String pathkey;
+    
+    System.getenv().keySet().each { String it ->
+      if (it.toLowerCase(Locale.ENGLISH).equals("path")) {
+        pathkey = it;
+      }
+    }
+    assert pathkey
+    log.info("Path env variable is $pathkey")
+    def pathval = System.getenv(pathkey)
+    log.info("Path value = $pathval")
+  }
 }