Skip to content

Commit

Permalink
[ggj][engx] fix: output srcjar path (#269)
Browse files Browse the repository at this point in the history
* feat: parse batching descriptor fields

* feat: add Field.isMap and map-parsing test

* feat: add initial batching descriptor field to ServiceStubSettings

* feat: support '? extends Foo' wildcard bounded references

* fix: speed up precommit checks with --disk_cache

* feat: add splitException, count{Elements,Bytes} batching descriptor methods to ServiceStubSettings

* feat: add GeneralForStatement

* feat: add splitRseponse to batching desc. in ServiceStubSettings

* fix: output srcjar path
  • Loading branch information
miraleung authored Sep 4, 2020
1 parent b78dbc9 commit f28b4ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/google/api/generator/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String[] args)
ExtensionRegistry registry = ExtensionRegistry.newInstance();
registerAllExtensions(registry);
CodeGeneratorRequest request = CodeGeneratorRequest.parseFrom(System.in, registry);
String outputFilePath = String.format("%stemp-gen.srcjar", request.getParameter());
String outputFilePath = "temp-gen.srcjar";
CodeGeneratorResponse response = Generator.generateGapic(request, outputFilePath);
response.writeTo(System.out);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public static Expr createBatchingDescriptorFieldDeclExpr(
javaMethods.add(createGetBatchPartitionKeyMethod(method, batchingSettings, messageTypes));
javaMethods.add(createGetRequestBuilderMethod(method, batchingSettings));
javaMethods.add(createSplitResponseMethod(method, batchingSettings, messageTypes));

javaMethods.add(createSplitExceptionMethod(method));
javaMethods.add(createCountElementsMethod(method, batchingSettings));
javaMethods.add(createCountByteSMethod(method));
Expand Down

0 comments on commit f28b4ab

Please sign in to comment.