add debug hook for junit tests
This commit is contained in:
parent
7b679bb6ed
commit
766662e78f
1 changed files with 7 additions and 1 deletions
|
@ -62,7 +62,7 @@ public final class OfficeConnection {
|
|||
description = "pipe,name=oootest" + UUID.randomUUID();
|
||||
ProcessBuilder pb = new ProcessBuilder(
|
||||
sofficeArg.substring("path:".length()), "--quickstart=no",
|
||||
"--nofirststartwizard", "--norestore",
|
||||
"--nofirststartwizard", "--norestore", "--nologo",
|
||||
"--accept=" + description + ";urp",
|
||||
"-env:UserInstallation=" + Argument.get("user"),
|
||||
"-env:UNO_JAVA_JFW_ENV_JREHOME=true",
|
||||
|
@ -104,6 +104,12 @@ public final class OfficeConnection {
|
|||
assertNull(waitForProcess(process, 1000)); // 1 sec
|
||||
}
|
||||
}
|
||||
try {
|
||||
ProcessBuilder debugbp = new ProcessBuilder(
|
||||
Argument.get("debugcommand").split(" "));
|
||||
debugbp.start();
|
||||
Thread.sleep(1000);
|
||||
} catch(Exception e) {}
|
||||
}
|
||||
|
||||
/** Shut down the OOo instance.
|
||||
|
|
Loading…
Reference in a new issue