[jboss-cvs] JBoss Messaging SVN: r6009 - trunk/tests/joram-tests/src/org/jboss/test/jms.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Mar 5 10:24:41 EST 2009
Author: jmesnil
Date: 2009-03-05 10:24:40 -0500 (Thu, 05 Mar 2009)
New Revision: 6009
Modified:
trunk/tests/joram-tests/src/org/jboss/test/jms/JBossMessagingAdmin.java
Log:
JBossMessagingAdmin: fixed spawned server setup
* echo the spawned server output (for debugging purpose if something went wrong)
* destroy the process before throwing IllegalStateException if the spawned server did not output OK
Modified: trunk/tests/joram-tests/src/org/jboss/test/jms/JBossMessagingAdmin.java
===================================================================
--- trunk/tests/joram-tests/src/org/jboss/test/jms/JBossMessagingAdmin.java 2009-03-05 14:45:50 UTC (rev 6008)
+++ trunk/tests/joram-tests/src/org/jboss/test/jms/JBossMessagingAdmin.java 2009-03-05 15:24:40 UTC (rev 6009)
@@ -266,6 +266,7 @@
String line = null;
while ((line = br.readLine()) != null)
{
+ System.out.println(line);
line.replace('|', '\n');
if (line.startsWith("Listening for transport"))
{
@@ -276,6 +277,8 @@
return;
} else
{
+ // something went wrong with the server, destroy it:
+ serverProcess.destroy();
throw new IllegalStateException("Unable to start the spawned server :" + line);
}
}
More information about the jboss-cvs-commits
mailing list