From c5d856652006d01351f30763289a26fc35584977 Mon Sep 17 00:00:00 2001 From: Ats Uiboupin Date: Tue, 30 Aug 2016 19:38:42 +0300 Subject: [PATCH] fix #55 - write JS to writer given as an argument (maven plugin created empty JS file) --- .../java/java2typescript/jaxrs/ServiceDescriptorGenerator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java2typescript-jaxrs/src/main/java/java2typescript/jaxrs/ServiceDescriptorGenerator.java b/java2typescript-jaxrs/src/main/java/java2typescript/jaxrs/ServiceDescriptorGenerator.java index 7ccc64b..e390d0a 100644 --- a/java2typescript-jaxrs/src/main/java/java2typescript/jaxrs/ServiceDescriptorGenerator.java +++ b/java2typescript-jaxrs/src/main/java/java2typescript/jaxrs/ServiceDescriptorGenerator.java @@ -186,6 +186,7 @@ public void generateJavascript(String moduleName, Writer writer) throws JsonGene // Replace template values String out = jsTemplate.replace(MODULE_NAME_PLACEHOLDER, moduleName); out = out.replace(JSON_PLACEHOLDER, jsonOut.toString()); + writer.write(out); } private RestMethod generateMethod(Method method) {