HBASE-7718 TestClassLoading needs to consider runtime classpath in buildCoprocessorJar (Jean-Marc)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1440661 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-01-30 20:50:13 +00:00
parent d104b26a38
commit 03cbe99685
1 changed files with 1 additions and 4 deletions

View File

@ -170,10 +170,7 @@ public class TestClassLoading {
String currentDir = new File(".").getAbsolutePath();
String classpath =
currentDir + File.separator + "target"+ File.separator + "classes" +
System.getProperty("path.separator") +
// Note that the below trick only works if mvn is running the test;
// doesn't work in eclipse for example.
System.getProperty("surefire.test.class.path");
System.getProperty("path.separator") + System.getProperty("java.class.path");
options.add(classpath);
LOG.debug("Setting classpath to: "+classpath);