KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > antsupport > EclipseSingleCheckExecutor


1 /*******************************************************************************
2  * Copyright (c) 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 package org.eclipse.ant.internal.ui.antsupport;
12
13 import java.util.Arrays JavaDoc;
14 import java.util.Vector JavaDoc;
15
16 import org.apache.tools.ant.BuildException;
17 import org.apache.tools.ant.Executor;
18 import org.apache.tools.ant.Project;
19 import org.apache.tools.ant.helper.SingleCheckExecutor;
20
21 public class EclipseSingleCheckExecutor extends SingleCheckExecutor {
22
23     /* (non-Javadoc)
24      * @see org.apache.tools.ant.Executor#executeTargets(org.apache.tools.ant.Project, java.lang.String[])
25      */

26     public void executeTargets(Project project, String JavaDoc[] targetNames) throws BuildException {
27         Vector JavaDoc v= new Vector JavaDoc();
28         v.addAll(Arrays.asList(targetNames));
29         project.addReference("eclipse.ant.targetVector", v); //$NON-NLS-1$
30
super.executeTargets(project, targetNames);
31     }
32     
33     /* (non-Javadoc)
34      * @see org.apache.tools.ant.Executor#getSubProjectExecutor()
35      */

36     public Executor getSubProjectExecutor() {
37         return this;
38     }
39 }
40
Popular Tags