@@ -48,7 +48,9 @@ private UpdateServiceMain() {
48
48
requiredOption ("maven-project-root" , "The root directory for the maven project." ),
49
49
requiredOption ("service-json" , "The service-2.json file for the service." ),
50
50
optionalOption ("paginators-json" , "The paginators-1.json file for the service." ),
51
- optionalOption ("waiters-json" , "The waiters-2.json file for the service." ));
51
+ optionalOption ("waiters-json" , "The waiters-2.json file for the service." ),
52
+ optionalOption ("endpoint-rule-set-json" , "The endpoint-rule-set.json file for the service." ),
53
+ optionalOption ("endpoint-tests-json" , "The endpoint-tests.json file for the service." ));
52
54
}
53
55
54
56
public static void main (String [] args ) {
@@ -67,6 +69,8 @@ private static class ServiceUpdater {
67
69
private final Path serviceJson ;
68
70
private final Path paginatorsJson ;
69
71
private final Path waitersJson ;
72
+ private final Path endpointRuleSetJson ;
73
+ private final Path endpointTestsJson ;
70
74
71
75
private ServiceUpdater (CommandLine commandLine ) {
72
76
this .mavenProjectRoot = Paths .get (commandLine .getOptionValue ("maven-project-root" ).trim ());
@@ -75,6 +79,8 @@ private ServiceUpdater(CommandLine commandLine) {
75
79
this .serviceJson = Paths .get (commandLine .getOptionValue ("service-json" ).trim ());
76
80
this .paginatorsJson = optionalPath (commandLine .getOptionValue ("paginators-json" ));
77
81
this .waitersJson = optionalPath (commandLine .getOptionValue ("waiters-json" ));
82
+ this .endpointRuleSetJson = optionalPath (commandLine .getOptionValue ("endpoint-rule-set-json" ));
83
+ this .endpointTestsJson = optionalPath (commandLine .getOptionValue ("endpoint-tests-json" ));
78
84
}
79
85
80
86
private Path optionalPath (String path ) {
@@ -93,6 +99,8 @@ public void run() throws Exception {
93
99
copyFile (serviceJson , codegenFileLocation .resolve ("service-2.json" ));
94
100
copyFile (paginatorsJson , codegenFileLocation .resolve ("paginators-1.json" ));
95
101
copyFile (waitersJson , codegenFileLocation .resolve ("waiters-2.json" ));
102
+ copyFile (endpointRuleSetJson , codegenFileLocation .resolve ("endpoint-rule-set.json" ));
103
+ copyFile (endpointTestsJson , codegenFileLocation .resolve ("endpoint-tests.json" ));
96
104
}
97
105
98
106
private Path codegenFileLocation (String serviceModuleName , String serviceId ) {
0 commit comments