summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/test/controller/src/main/java/Test/Common/ControllerServer.java24
1 files changed, 17 insertions, 7 deletions
diff --git a/java/test/controller/src/main/java/Test/Common/ControllerServer.java b/java/test/controller/src/main/java/Test/Common/ControllerServer.java
index b59376e10b9..5e4e9fc938b 100644
--- a/java/test/controller/src/main/java/Test/Common/ControllerServer.java
+++ b/java/test/controller/src/main/java/Test/Common/ControllerServer.java
@@ -44,19 +44,19 @@ public class ControllerServer extends Ice.Application
{
final BufferedReader reader = new BufferedReader(new InputStreamReader(_is));
- String line = null;
- while((line = reader.readLine()) != null)
+ String line = reader.readLine();
+ while(line != null)
{
if(_started == 0)
{
_processOutput.append(line + "\n");
}
- if(line.matches(Pattern.quote("starting server...") + ".*ok") ||
- line.matches(Pattern.quote("starting serveramd...") + ".*ok") ||
- line.matches(Pattern.quote("starting servertie...") + ".*ok") ||
- line.matches(Pattern.quote("starting serveramdtie...") + ".*ok") ||
- line.matches("starting test.*" + Pattern.quote("Server...") + ".*ok"))
+ if(line.matches(Pattern.quote("starting server...") + ".*ok.*") ||
+ line.matches(Pattern.quote("starting serveramd...") + ".*ok.*") ||
+ line.matches(Pattern.quote("starting servertie...") + ".*ok.*") ||
+ line.matches(Pattern.quote("starting serveramdtie...") + ".*ok.*") ||
+ line.matches("starting test.*" + Pattern.quote("Server...") + ".*ok.*"))
{
synchronized(ServerI.this)
{
@@ -64,7 +64,17 @@ public class ControllerServer extends Ice.Application
ServerI.this.notifyAll();
}
}
+ else if(line.matches(Pattern.quote("starting server...") + ".*") ||
+ line.matches(Pattern.quote("starting serveramd...") + ".*") ||
+ line.matches(Pattern.quote("starting servertie...") + ".*") ||
+ line.matches(Pattern.quote("starting serveramdtie...") + ".*") ||
+ line.matches("starting test.*" + Pattern.quote("Server...") + ".*"))
+ {
+ line += reader.readLine();
+ continue;
+ }
System.out.println(line);
+ line = reader.readLine();
}
}
catch(java.io.IOException ex)