Fixed sanitytest to always use the same java and JAVA_HOME as maven. 53/2253/2
authorEd Warnicke <eaw@cisco.com>
Tue, 29 Oct 2013 16:12:17 +0000 (09:12 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 29 Oct 2013 22:59:33 +0000 (22:59 +0000)
Change-Id: I51d17678614d5df1ebd6d11394ebca6266749f01
Signed-off-by: Ed Warnicke <eaw@cisco.com>
opendaylight/distribution/opendaylight/pom.xml

index 705bce7b895b57cf2b5e42792ab3ad7a43e9303d..4c36e5634cd32cc38aad1407fab17c97b02a4a03 100644 (file)
           </execution>
         </executions>
           <configuration>
-            <executable>java</executable>
+            <executable>${java.home}/bin/java</executable>
             <arguments>
                 <argument>-cp</argument>
                 <argument>./target/dependency/*</argument>
                 <argument>org.opendaylight.controller.distribution.Sanity</argument>
             </arguments>
+            <environmentVariables>
+              <JAVA_HOME>
+                ${java.home}
+              </JAVA_HOME>
+            </environmentVariables>
           </configuration>
       </plugin>
     </plugins>