public class SkipExistingTargetFileStrategy extends ReplaceTargetFileStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
STRATEGY_NAME
The strategy name "skip".
|
| Constructor and Description |
|---|
SkipExistingTargetFileStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
beforeGeneration(String outputDirKey,
String outputPath,
String encoding,
UnitConfiguration unitConfiguration)
Will be called before the generation is started and decides whether
the generation process for this file should proceed.
|
String |
getStrategyName()
Returns the name of the existing target strategy.
|
afterGenerationpublic static final String STRATEGY_NAME
public boolean beforeGeneration(String outputDirKey, String outputPath, String encoding, UnitConfiguration unitConfiguration)
beforeGeneration in interface ExistingTargetStrategybeforeGeneration in class ReplaceTargetFileStrategyoutputDirKey - the key for the output directory
into which the generated file should be written,
null for the default output directory.outputPath - the path to which the output should be written,
relative to the output base directory.unitConfiguration - the configuration of the current configuration
unit, not null.encoding - The character encoding of the generated file,
or null for the platform default encoding.public String getStrategyName()
getStrategyName in interface ExistingTargetStrategygetStrategyName in class ReplaceTargetFileStrategyCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.