1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 12 package org.eclipse.ant.internal.core.ant; 13 14 import org.apache.tools.ant.BuildException; 15 import org.apache.tools.ant.input.InputHandler; 16 import org.apache.tools.ant.input.InputRequest; 17 18 /** 19 * A input handler that does nothing with input requests 20 * Used to ensure we do not block while retrieving targets from an Ant buildfile 21 * that has an input task in the top level implicit target 22 */ 23 public class NullInputHandler implements InputHandler { 24 25 public NullInputHandler() { 26 } 27 28 /* (non-Javadoc) 29 * @see org.apache.tools.ant.input.InputHandler#handleInput(org.apache.tools.ant.input.InputRequest) 30 */ 31 public void handleInput(InputRequest request) throws BuildException { 32 } 33 } 34