diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2006-10-31 13:02:20 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2006-10-31 13:02:20 +0000 |
| commit | 4b90ab1aa30b2540149ee5da27fa202fbd74643c (patch) | |
| tree | 3bcc7a95aa3e4f84ee6e9dc293b7c578b4ab357f /qpid/java/client/test | |
| parent | 4c7120d4933479d9251374836461f27492904589 (diff) | |
| download | qpid-python-4b90ab1aa30b2540149ee5da27fa202fbd74643c.tar.gz | |
Updated to programmatically set QPID_WORK for logging, to stop failed builds
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@469470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/test')
| -rw-r--r-- | qpid/java/client/test/src/org/apache/qpid/ack/DisconnectAndRedeliverTest.java | 9 | ||||
| -rw-r--r-- | qpid/java/client/test/src/org/apache/qpid/ack/RecoverTest.java | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/qpid/java/client/test/src/org/apache/qpid/ack/DisconnectAndRedeliverTest.java b/qpid/java/client/test/src/org/apache/qpid/ack/DisconnectAndRedeliverTest.java index 68460682ec..6034247e48 100644 --- a/qpid/java/client/test/src/org/apache/qpid/ack/DisconnectAndRedeliverTest.java +++ b/qpid/java/client/test/src/org/apache/qpid/ack/DisconnectAndRedeliverTest.java @@ -40,8 +40,15 @@ public class DisconnectAndRedeliverTest static { + String workdir = System.getProperty("QPID_WORK"); + if (workdir == null || workdir.equals("")) + { + String tempdir = System.getProperty("java.io.tmpdir"); + System.out.println("QPID_WORK not set using tmp directory: " + tempdir); + System.setProperty("QPID_WORK", tempdir); + } //DOMConfigurator.configure("../etc/log4j.xml"); - DOMConfigurator.configure("broker/etc/log4j.xml"); + DOMConfigurator.configure("broker/etc/log4j.xml"); } @Before diff --git a/qpid/java/client/test/src/org/apache/qpid/ack/RecoverTest.java b/qpid/java/client/test/src/org/apache/qpid/ack/RecoverTest.java index 0feecb5a79..e12ca45de3 100644 --- a/qpid/java/client/test/src/org/apache/qpid/ack/RecoverTest.java +++ b/qpid/java/client/test/src/org/apache/qpid/ack/RecoverTest.java @@ -38,6 +38,13 @@ public class RecoverTest static { + String workdir = System.getProperty("QPID_WORK"); + if (workdir == null || workdir.equals("")) + { + String tempdir = System.getProperty("java.io.tmpdir"); + System.out.println("QPID_WORK not set using tmp directory: " + tempdir); + System.setProperty("QPID_WORK", tempdir); + } //DOMConfigurator.configure("../etc/log4j.xml"); DOMConfigurator.configure("broker/etc/log4j.xml"); } @@ -45,7 +52,7 @@ public class RecoverTest @After public void stopVmBroker() { - TransportConnection.killVMBroker(1); + TransportConnection.killVMBroker(1); } @Test |
