public interface ClasspathDelegateAntTask extends AntTaskMixIn
Tasks that implement the syntax described in
ClasspathUtils.Delegate.| Modifier and Type | Method and Description |
|---|---|
default Path |
createClasspath()
|
ClasspathUtils.Delegate |
delegate()
Required state for implementing
Tasks. |
ClasspathDelegateAntTask |
delegate(ClasspathUtils.Delegate delegate)
Required state for implementing
Tasks. |
default Class<?> |
getClassForName(String name)
Method to get the
Class associated with the argument name
using the ClassLoader provided by getClassLoader(). |
default AntClassLoader |
getClassLoader()
|
default void |
init()
Default implementation for
Task
subclasses. |
default void |
setClassname(String name)
|
default void |
setClasspathref(Reference reference)
|
ClasspathUtils.Delegate delegate()
Tasks.
Refer to the discussion in ClasspathUtils.ClasspathUtils.Delegate
instance created in the
Task.init() method.ClasspathDelegateAntTask delegate(ClasspathUtils.Delegate delegate)
Tasks.
Refer to the discussion in ClasspathUtils.delegate - The
ClasspathUtils.Delegate.this.default void init() throws BuildException
Task
subclasses.BuildExceptiondefault void setClasspathref(Reference reference)
reference - The Reference to the classpath.default Path createClasspath()
Path.default void setClassname(String name)
name - The class name (String).default AntClassLoader getClassLoader()
AntClassLoader.default Class<?> getClassForName(String name) throws ClassNotFoundException
Class associated with the argument name
using the ClassLoader provided by getClassLoader().name - The fully qualified name of the desired
class.Class for the specified name.ClassNotFoundException - If the Class is not found.Copyright © 2015–2021. All rights reserved.