org.schmant.task.meta
Interface TargetStrategy
- All Known Implementing Classes:
- ChangeExtensionTargetStrategy, DefaultTargetStrategy
public interface TargetStrategy
Strategy interface for creating the target name and location for an entity
being processed. This is used by RecursiveProcessTF
tasks.
- Since:
- 0.5
- Author:
- Karl Gustafsson
- Task_package:
- org.schmant.task.base
getTarget
Object getTarget(ProcessTaskSpec<?> t,
DirectoryView baseDir,
RelativeLocation rel)
- Create the target location for the entity being processed.
- Parameters:
t
- The task to get the target for. This method should not set the
task's target
property. (Or any other property, for that matter.)
The source
property is set on the task. If the task factory is a
closure, this parameter will be null
.baseDir
- The base target directory for the process.rel
- The processed entity's location relative to its base
directory.
- Returns:
- The target location for the processed entity. This can for
instance be a
FutureEntity
. The object that
is returned here is set to the nested task's target
property. See
the task factory documentation for the nested task for the different
kinds of object types that it can handle.