blob: d3b87d2db8809aede0f9896756c26c24a3903fef [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
* yyyymmdd bug Email and other contact information
* -------- -------- -----------------------------------------------------------
* 20070522 176943 pmoogk@ca.ibm.com - Peter Moogk
*******************************************************************************/
package ws.ant.task;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import org.eclipse.wst.command.internal.env.ant.AntController;
public class WebServiceGenerationAntTask extends Task
{
public void execute()
{
//get properties set in the Ant file
Project proj = getProject();
if( proj != null )
{
//call the AntController to kick off generation
AntController controller = new AntController(proj.getProperties());
String errorMessage = controller.getErrorMessage();
if( errorMessage != null )
{
throw new BuildException( errorMessage );
}
}
}
}