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>
|
</processors>
|
||||||
<options>
|
<options>
|
||||||
<!-- suppressGeneratorTimestamp=false is the default -->
|
<!-- suppressGeneratorTimestamp=false is the default -->
|
||||||
<suppressGeneratorTimestamp>false</suppressGeneratorTimestamp>
|
<mapstruct.suppressGeneratorTimestamp>false</mapstruct.suppressGeneratorTimestamp>
|
||||||
</options>
|
</options>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
|
@ -93,9 +93,9 @@ public class MappingProcessor extends AbstractProcessor {
|
|||||||
*/
|
*/
|
||||||
private static final boolean ANNOTATIONS_CLAIMED_EXCLUSIVELY = false;
|
private static final boolean ANNOTATIONS_CLAIMED_EXCLUSIVELY = false;
|
||||||
|
|
||||||
protected static final String SUPPRESS_GENERATOR_TIMESTAMP = "suppressGeneratorTimestamp";
|
protected static final String SUPPRESS_GENERATOR_TIMESTAMP = "mapstruct.suppressGeneratorTimestamp";
|
||||||
protected static final String UNMAPPED_TARGET_POLICY = "unmappedTargetPolicy";
|
protected static final String UNMAPPED_TARGET_POLICY = "mapstruct.unmappedTargetPolicy";
|
||||||
protected static final String DEFAULT_COMPONENT_MODEL = "defaultComponentModel";
|
protected static final String DEFAULT_COMPONENT_MODEL = "mapstruct.defaultComponentModel";
|
||||||
|
|
||||||
private Options options;
|
private Options options;
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ public class SeveralSourceParametersTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
@WithClasses({ ErroneousSourceTargetMapper.class, Address.class, DeliveryAddress.class })
|
@WithClasses({ ErroneousSourceTargetMapper.class, Address.class, DeliveryAddress.class })
|
||||||
@ProcessorOption(name = "unmappedTargetPolicy", value = "IGNORE")
|
@ProcessorOption(name = "mapstruct.unmappedTargetPolicy", value = "IGNORE")
|
||||||
@ExpectedCompilationOutcome(
|
@ExpectedCompilationOutcome(
|
||||||
value = CompilationResult.FAILED,
|
value = CompilationResult.FAILED,
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
|
@ -87,7 +87,7 @@ public class UnmappedTargetTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
@WithClasses({ Source.class, Target.class, SourceTargetMapper.class })
|
@WithClasses({ Source.class, Target.class, SourceTargetMapper.class })
|
||||||
@ProcessorOption(name = "unmappedTargetPolicy", value = "ERROR")
|
@ProcessorOption(name = "mapstruct.unmappedTargetPolicy", value = "ERROR")
|
||||||
@ExpectedCompilationOutcome(
|
@ExpectedCompilationOutcome(
|
||||||
value = CompilationResult.FAILED,
|
value = CompilationResult.FAILED,
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user