mirror of https://github.com/apache/activemq.git
ensure test can find basedir
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1450226 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ef1d254e34
commit
4d9f7080d4
|
@ -17,6 +17,7 @@
|
|||
|
||||
package org.apache.activemq.broker;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -93,4 +94,12 @@ public class SpringTest extends TestCase {
|
|||
}
|
||||
}
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
if (System.getProperty("basedir") == null) {
|
||||
File file = new File(".");
|
||||
System.setProperty("basedir", file.getAbsolutePath());
|
||||
}
|
||||
super.setUp();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue