This repository has been archived by the owner on May 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from CJSCommonPlatform/add-generator-properties…
…-interface Add GeneratorProperties interface for custom implementation of proper…
- Loading branch information
Showing
9 changed files
with
61 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...rc/main/java/uk/gov/justice/maven/generator/io/files/parser/core/GeneratorProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package uk.gov.justice.maven.generator.io.files.parser.core; | ||
|
||
public interface GeneratorProperties { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...v/justice/maven/generator/io/files/parser/generator/property/TestGeneratorProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package uk.gov.justice.maven.generator.io.files.parser.generator.property; | ||
|
||
import uk.gov.justice.maven.generator.io.files.parser.core.GeneratorProperties; | ||
|
||
import java.util.List; | ||
|
||
import org.apache.maven.plugins.annotations.Parameter; | ||
|
||
public class TestGeneratorProperties implements GeneratorProperties { | ||
|
||
@Parameter | ||
private String property1; | ||
|
||
@Parameter | ||
private String property2; | ||
|
||
@Parameter | ||
private List<String> nestedProperty; | ||
|
||
public String getProperty1() { | ||
return property1; | ||
} | ||
|
||
public String getProperty2() { | ||
return property2; | ||
} | ||
|
||
public List<String> getNestedProperty() { | ||
return nestedProperty; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters