langtools/src/share/classes/com/sun/tools/javadoc/JavadocTool.java
changeset 6716 71df48777dd1
parent 5520 86e4b9a9da40
child 10635 028f55edd8f4
equal deleted inserted replaced
6715:9afc72714ca4 6716:71df48777dd1
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2010, 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
   105             JavadocTodo.preRegister(context);
   105             JavadocTodo.preRegister(context);
   106 
   106 
   107             // force the use of Messager as a Log
   107             // force the use of Messager as a Log
   108             messager = Messager.instance0(context);
   108             messager = Messager.instance0(context);
   109 
   109 
   110             // force the use of the scanner that captures Javadoc comments
       
   111             DocCommentScanner.Factory.preRegister(context);
       
   112 
       
   113             return new JavadocTool(context);
   110             return new JavadocTool(context);
   114         } catch (CompletionFailure ex) {
   111         } catch (CompletionFailure ex) {
   115             messager.error(Position.NOPOS, ex.getMessage());
   112             messager.error(Position.NOPOS, ex.getMessage());
   116             return null;
   113             return null;
   117         }
   114         }