ASF Bugzilla – Attachment 13905 Details for
Bug 22901
[Patch] -only option to execute target(s) without dependencies
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
OnlyExecutor.java
OnlyExecutor.java (text/plain), 1.42 KB, created by
Alexey Solofnenko
on 2005-01-06 05:48:57 UTC
(
hide
)
Description:
OnlyExecutor.java
Filename:
MIME Type:
Creator:
Alexey Solofnenko
Created:
2005-01-06 05:48:57 UTC
Size:
1.42 KB
patch
obsolete
>/* > * Copyright 2004 The Apache Software Foundation > * > * Licensed under the Apache License, Version 2.0 (the "License"); > * you may not use this file except in compliance with the License. > * You may obtain a copy of the License at > * > * http://www.apache.org/licenses/LICENSE-2.0 > * > * Unless required by applicable law or agreed to in writing, software > * distributed under the License is distributed on an "AS IS" BASIS, > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. > * See the License for the specific language governing permissions and > * limitations under the License. > * > */ > >package org.apache.tools.ant.helper; > > >import org.apache.tools.ant.Project; >import org.apache.tools.ant.Executor; >import org.apache.tools.ant.BuildException; >import java.util.Hashtable; >import org.apache.tools.ant.Target; > > >/** > * Executor that executes only the mentioned targets without dependencies. > * @since Ant 1.6.3 > */ >public class OnlyExecutor implements Executor { > > //inherit doc > public void executeTargets(Project project, String[] targetNames) > throws BuildException { > Hashtable targets = project.getTargets(); > for (int i = 0; i < targetNames.length; i++) { > ( (Target) targets.get(targetNames[i])).performTasks(); > } > } > > // inherit doc > public Executor getChildExecutor() { > return new SingleCheckExecutor(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 22901
:
8043
|
13904
| 13905