/* *******************************************************************
 * Copyright (c) 2003 Contributors.
 * All rights reserved. 
 * This program and the accompanying materials are made available 
 * under the terms of the Common Public License v1.0 
 * which accompanies this distribution and is available at 
 * http://www.eclipse.org/legal/cpl-v10.html 
 *  
 * Contributors: 
 *     Mik Kersten     initial implementation 
 * ******************************************************************/
 package org.aspectj.tools.ajdoc;

/**
 * Wrapper for ajdoc's use of the AspectJ compiler.
 * 
 * @author Mik Kersten
 */
public class CompilerWrapper extends org.aspectj.tools.ajc.Main {

	private static CompilerWrapper INSTANCE = null;
	
    public static void main(String[] args) {
    	INSTANCE = new CompilerWrapper();
		INSTANCE.runMain(args, true);

    }
    
	public static boolean hasErrors() {
		return INSTANCE.ourHandler.getErrors().length > 0;
	}
}
