Creates a new, sandboxed server instance. @param args additional arguments @return server instance @throws IOException I/O exception
(final String... args)
| 548 | * @throws IOException I/O exception |
| 549 | */ |
| 550 | public static BaseXServer createServer(final String... args) throws IOException { |
| 551 | final StringList sl = new StringList("-p" + DB_PORT, "-z", "-c", "password " + NAME, "-q"); |
| 552 | final BaseXServer server = new BaseXServer(sl.add(args).finish()); |
| 553 | server.context.soptions.set(StaticOptions.DBPATH, sandbox().path()); |
| 554 | return server; |
| 555 | } |
| 556 | |
| 557 | /** |
| 558 | * Stops a server instance. |