Interface ArtifactContainer
public interface ArtifactContainer
Represents a collection of one or more
Artifact instances in an Ant build context.
This interface is implemented by Ant types that logically group or provide access to Maven artifacts,
such as Artifact, Artifacts, or other custom container types.
Implementations must be able to:
- Validate their internal artifact structure for consistency and completeness.
- Return all artifacts they contain for further processing (e.g., deployment, installation).
Known Implementations:
Artifact— represents a single Maven artifactArtifacts— represents a group of artifacts or nested artifact containers
This interface is typically used by Ant tasks such as
Install and
Deploy.
- See Also:
-
Method Details
-
validate
void validate(org.apache.tools.ant.Task task) Validates the artifact(s) within this container.- Parameters:
task- the Ant task requesting validation; used for context or error reporting- Throws:
org.apache.tools.ant.BuildException- if any artifact is invalid or required attributes are missing
-
getArtifacts
Returns a flat list of allArtifactinstances in this container.- Returns:
- a list of artifacts; never
null, but may be empty
-