Conditions | 3 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | package com.hltech.vaunt.generator.domain.representation; |
||
16 | public void writeServiceRepresentation(Service service, String targetDirectory) throws IOException { |
||
17 | File targetDir = Paths.get(targetDirectory).toFile(); |
||
18 | if (targetDir != null && !targetDir.exists()) { |
||
19 | targetDir.mkdirs(); |
||
20 | } |
||
21 | |||
22 | File targetFile = Paths.get(targetDirectory).resolve(service.getName().concat(".json")).toFile(); |
||
23 | serializer.serializeToFile(targetFile, service); |
||
24 | } |
||
26 |