equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
144 } finally { |
144 } finally { |
145 if (server != null) { |
145 if (server != null) { |
146 server.close(); |
146 server.close(); |
147 } |
147 } |
148 |
148 |
149 // Cleanups port.log. |
149 // Cleanups port log. |
150 File file = new File(Utils.PORT_LOG); |
150 if (!new File(Utils.PORT_LOG).delete()) { |
151 if (file.exists()) { |
151 throw new RuntimeException("Cannot delete port log"); |
152 file.delete(); |
|
153 } |
152 } |
154 } |
153 } |
155 |
154 |
156 System.out.println("STATUS: " + status); |
155 System.out.println("STATUS: " + status); |
157 System.out.println("----- Server end -----"); |
156 System.out.println("----- Server end -----"); |