mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#262 prefix processor options with 'mapstruct.'
This commit is contained in:
parent
3822e723b7
commit
1b882f3bd7
@ -90,7 +90,7 @@
|
||||
</processors>
|
||||
<options>
|
||||
<!-- suppressGeneratorTimestamp=false is the default -->
|
||||
<suppressGeneratorTimestamp>false</suppressGeneratorTimestamp>
|
||||
<mapstruct.suppressGeneratorTimestamp>false</mapstruct.suppressGeneratorTimestamp>
|
||||
</options>
|
||||
</configuration>
|
||||
<executions>
|
||||
|
@ -93,9 +93,9 @@ public class MappingProcessor extends AbstractProcessor {
|
||||
*/
|
||||
private static final boolean ANNOTATIONS_CLAIMED_EXCLUSIVELY = false;
|
||||
|
||||
protected static final String SUPPRESS_GENERATOR_TIMESTAMP = "suppressGeneratorTimestamp";
|
||||
protected static final String UNMAPPED_TARGET_POLICY = "unmappedTargetPolicy";
|
||||
protected static final String DEFAULT_COMPONENT_MODEL = "defaultComponentModel";
|
||||
protected static final String SUPPRESS_GENERATOR_TIMESTAMP = "mapstruct.suppressGeneratorTimestamp";
|
||||
protected static final String UNMAPPED_TARGET_POLICY = "mapstruct.unmappedTargetPolicy";
|
||||
protected static final String DEFAULT_COMPONENT_MODEL = "mapstruct.defaultComponentModel";
|
||||
|
||||
private Options options;
|
||||
|
||||
|
@ -100,7 +100,7 @@ public class SeveralSourceParametersTest {
|
||||
|
||||
@Test
|
||||
@WithClasses({ ErroneousSourceTargetMapper.class, Address.class, DeliveryAddress.class })
|
||||
@ProcessorOption(name = "unmappedTargetPolicy", value = "IGNORE")
|
||||
@ProcessorOption(name = "mapstruct.unmappedTargetPolicy", value = "IGNORE")
|
||||
@ExpectedCompilationOutcome(
|
||||
value = CompilationResult.FAILED,
|
||||
diagnostics = {
|
||||
|
@ -87,7 +87,7 @@ public class UnmappedTargetTest {
|
||||
|
||||
@Test
|
||||
@WithClasses({ Source.class, Target.class, SourceTargetMapper.class })
|
||||
@ProcessorOption(name = "unmappedTargetPolicy", value = "ERROR")
|
||||
@ProcessorOption(name = "mapstruct.unmappedTargetPolicy", value = "ERROR")
|
||||
@ExpectedCompilationOutcome(
|
||||
value = CompilationResult.FAILED,
|
||||
diagnostics = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user