org.schmant.task.confable
Interface OverwriteConfigurable<T extends OverwriteConfigurable<T>>

All Known Subinterfaces:
GeneratorTaskConfigurable<T>, GeneratorTaskFactory<T,U>, GeneratorTaskSpec<T>, JavacTaskFactory<T,U>, ProcessTaskConfigurable<T>, ProcessTaskFactory<T,U>, ProcessTaskSpec<T>, ProxyTaskConfigurable<T>, RecursiveProcessTaskConfigurable<T>, RecursiveProcessTaskFactory<T,U>, RecursiveProcessTaskSpec<T>, TextInsertionTaskConfigurable<T>
All Known Implementing Classes:
AbstractAddTextTask, AbstractAddTextTaskFactory, AbstractCallbackRecursiveProcessTask, AbstractGeneratorTask, AbstractGeneratorTaskFactory, AbstractJarTask, AbstractJarTaskFactory, AbstractJavacTask, AbstractJavacTaskFactory, AbstractJavaZipTask, AbstractJavaZipTaskFactory, AbstractLinkInsertionTask, AbstractLinkInsertionTaskFactory, AbstractProcessOneFileTask, AbstractProcessTask, AbstractProcessTaskFactory, AbstractProxyTask, AbstractProxyTaskFactory, AbstractRecursiveProcessTaskFactory, AbstractTextInsertionTask, AbstractTextInsertionTaskFactory, AbstractZipTask, AbstractZipTaskFactory, ApiLinksTask, ApiLinksTF, ArgumentInterpreterLinksTask, ArgumentInterpreterLinksTF, At4JUnzipTF, At4JZipTask, At4JZipTF, BZip2Task, BZip2TF, ClosureTask, CopyTask, CopyTF, EarTask, EarTF, ErrorIgnoringTask, ErrorIgnoringTF, ExtFindbugsTask, ExtFindbugsTF, ExtJarSignerTask, ExtJarSignerTF, ExtJavacTask, ExtJavacTF, FormatCharacterFileTask, FormatCharacterFileTF, GZipTask, GZipTF, IncludeFilesTask, IncludeFilesTF, JarTask, JarTF, JavaWorkspaceBuilderTF, Jdk6JavacTask, Jdk6JavacTF, LzmaTask, LzmaTF, MoveTask, MoveTF, RecursiveProcessTask, RecursiveProcessTF, RedirectReportTask, RedirectReportTF, SchmantTaskrefTask, SchmantTaskrefTF, SvnExportTask, SvnExportTF, TarTask, TarTF, TaskFactoryLinksTask, TaskFactoryLinksTF, TextAppendTask, TextAppendTF, TextPrependTask, TextPrependTF, TextReplaceTask, TextReplaceTF, TimedExecutionTask, TimedExecutionTF, TreeCopyTask, TreeCopyTF, UntarTF, WarTask, WarTF, XsltTask, XsltTF, ZipTask, ZipTF

public interface OverwriteConfigurable<T extends OverwriteConfigurable<T>>

This interface defines something that has a configurable overwriting policy. This can be a task that can be configured to overwrite existing target entities.

Since:
0.5
Author:
Karl Gustafsson

Field Summary
static OverwriteStrategy DEFAULT_OVERWRITE_STRATEGY
          The default value of the overwriting policy.
 
Method Summary
 T setOverwrite(boolean b)
          Should things be overwritten? If this is set to true, it is equivalent to setting the overwrite strategy to DoOverwriteAndLogWarning.
 T setOverwriteStrategy(OverwriteStrategy strat)
          Set a strategy for how to react to existing entities in locations where the task wants to write.
 

Field Detail

DEFAULT_OVERWRITE_STRATEGY

static final OverwriteStrategy DEFAULT_OVERWRITE_STRATEGY
The default value of the overwriting policy.

Method Detail

setOverwrite

T setOverwrite(boolean b)
Should things be overwritten? If this is set to true, it is equivalent to setting the overwrite strategy to DoOverwriteAndLogWarning. If this is set to false, it is equivalent to setting the overwrite strategy to DontOverwriteAndLogWarning.

Parameters:
b - Should things be overwritten?
Returns:
this

setOverwriteStrategy

T setOverwriteStrategy(OverwriteStrategy strat)
Set a strategy for how to react to existing entities in locations where the task wants to write.

Parameters:
strat - The overwrite strategy.
Returns:
this
Since:
0.8