Class AbstractResourcePlugin.CopyResources

java.lang.Object
build.spin.common.task.AbstractCopy
build.spin.module.java.AbstractResourcePlugin.CopyResources
All Implemented Interfaces:
build.spin.Task<build.base.io.PathSet>
Direct Known Subclasses:
ResourcePlugin.CopyModuleResources
Enclosing class:
AbstractResourcePlugin

public abstract static class AbstractResourcePlugin.CopyResources extends build.spin.common.task.AbstractCopy
An abstract base for a resource-copying AbstractCopy task.

Concrete subclasses supply the @Named, @Before, and @From annotations (which must be compile-time constants) and delegate their method body to doCopy(PathSet, Path).

Since:
Apr-2026
Author:
reed.vonredwitz
  • Nested Class Summary

    Nested classes/interfaces inherited from interface build.spin.Task

    build.spin.Task.Pattern
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract String
    Returns the destination sub-path prefix within the build directory (e.g.
    protected build.base.io.PathSet
    doCopy(build.base.io.PathSet paths, Path buildPath)
    Copies resources from the detected source paths into the build directory.

    Methods inherited from class build.spin.common.task.AbstractCopy

    copy

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface build.spin.Task

    dependencies, execute
  • Constructor Details

    • CopyResources

      public CopyResources()
  • Method Details

    • destinationPrefix

      protected abstract String destinationPrefix()
      Returns the destination sub-path prefix within the build directory (e.g. "main/" or "test/").
    • doCopy

      protected build.base.io.PathSet doCopy(build.base.io.PathSet paths, Path buildPath)
      Copies resources from the detected source paths into the build directory.
      Parameters:
      paths - the source resource paths
      buildPath - the root build Path
      Returns:
      the PathSet of copied resources