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:
parent
d104b26a38
commit
03cbe99685
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue