public interface ClasspathDelegateAntTask extends AntTaskMixIn
Task
s that implement the syntax described in
ClasspathUtils.Delegate
.Modifier and Type | Method and Description |
---|---|
default Path |
createClasspath()
|
ClasspathUtils.Delegate |
delegate()
Required state for implementing
Task s. |
ClasspathDelegateAntTask |
delegate(ClasspathUtils.Delegate delegate)
Required state for implementing
Task s. |
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)
|
default Path createClasspath()
Path
.ClasspathUtils.Delegate delegate()
Task
s.
Refer to the discussion in ClasspathUtils
.ClasspathUtils.Delegate
instance created in the
Task.init()
method.ClasspathDelegateAntTask delegate(ClasspathUtils.Delegate delegate)
Task
s.
Refer to the discussion in ClasspathUtils
.delegate
- The
ClasspathUtils.Delegate
.this
.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.default AntClassLoader getClassLoader()
AntClassLoader
.default void init() throws BuildException
Task
subclasses.BuildException
default void setClassname(String name)
name
- The class name (String
).default void setClasspathref(Reference reference)
reference
- The Reference
to the classpath.Copyright © 2015–2020. All rights reserved.