1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
394 |
394 |
395 // pass off control to the doclet |
395 // pass off control to the doclet |
396 boolean ok = root != null; |
396 boolean ok = root != null; |
397 if (ok) ok = docletInvoker.start(root); |
397 if (ok) ok = docletInvoker.start(root); |
398 |
398 |
|
399 Messager docletMessager = Messager.instance0(context); |
|
400 messager.nwarnings += docletMessager.nwarnings; |
|
401 messager.nerrors += docletMessager.nerrors; |
|
402 |
399 // We're done. |
403 // We're done. |
400 if (compOpts.get("-verbose") != null) { |
404 if (compOpts.get("-verbose") != null) { |
401 tm = System.currentTimeMillis() - tm; |
405 tm = System.currentTimeMillis() - tm; |
402 messager.notice("main.done_in", Long.toString(tm)); |
406 messager.notice("main.done_in", Long.toString(tm)); |
403 } |
407 } |