blob: aa4c6c8840619e9475175884bf093656d1e641d3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.command.internal.env.ant;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.wst.common.environment.Choice;
import org.eclipse.wst.common.environment.IStatusHandler;
import org.eclipse.wst.common.environment.StatusException;
public class AntStatusHandler implements IStatusHandler {
public Choice report(IStatus status, Choice[] choices) {
// TODO
return null;
}
public void report(IStatus status) throws StatusException {
if (status.getSeverity() == IStatus.ERROR)
reportError(status);
else
reportInfo(status);
}
public void reportError(IStatus status) {
System.err.println(status.getMessage());
}
public void reportInfo(IStatus status) {
System.out.println(status.getMessage());
}
}