#262 prefix processor options with 'mapstruct.'

This commit is contained in:
Christian Schuster 2014-09-24 00:02:45 +02:00 committed by Gunnar Morling
parent 3822e723b7
commit 1b882f3bd7
4 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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 = {

View File

@ -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 = {