File tree 3 files changed +12
-6
lines changed
src/main/java/com/jcabi/dynamodb/maven/plugin
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,11 @@ protected List<String> args() {
124
124
}
125
125
126
126
/**
127
- * Set the project environment. This method is intentionally empty!.
128
- * Implementation to be provided by sub classes.
127
+ * Set the project environment.
129
128
* {@link com.jcabi.dynamodb.maven.plugin.AbstractEnviromentMojo}.
130
129
* @throws MojoFailureException If fails
131
130
*/
132
- protected void environment () throws MojoFailureException {
133
- return ;
134
- }
131
+ protected abstract void environment () throws MojoFailureException ;
135
132
136
133
/**
137
134
* Run custom functionality.
Original file line number Diff line number Diff line change @@ -78,6 +78,11 @@ public final class CreateTablesMojo extends AbstractDynamoMojo {
78
78
@ Parameter (required = false , defaultValue = "AWS-Secret" )
79
79
private transient String secret ;
80
80
81
+ @ Override
82
+ public void environment () throws MojoFailureException {
83
+ return ;
84
+ }
85
+
81
86
@ Override
82
87
public void run (final Instances instances ) throws MojoFailureException {
83
88
try {
Original file line number Diff line number Diff line change 52
52
)
53
53
public final class StopMojo extends AbstractDynamoMojo {
54
54
55
+ @ Override
56
+ public void environment () throws MojoFailureException {
57
+ return ;
58
+ }
59
+
55
60
@ Override
56
61
public void run (final Instances instances ) throws MojoFailureException {
57
62
instances .stop (this .tcpPort ());
58
63
}
59
-
60
64
}
You can’t perform that action at this time.
0 commit comments