Skip to content

Commit 91b06c4

Browse files
committed
good bye
1 parent 9f6bb6f commit 91b06c4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/main/java/DiscUtils/Xva/StaticStrings.java

+19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11

22
package DiscUtils.Xva;
33

4+
import java.io.IOException;
5+
import java.io.Writer;
6+
import java.nio.file.Files;
7+
import java.nio.file.Paths;
8+
import java.util.Arrays;
9+
import java.util.stream.IntStream;
10+
411
public class StaticStrings {
512
// @formatter:off
613
public static final String XVA_ova_base =
@@ -960,4 +967,16 @@ public class StaticStrings {
960967
" </struct>" +
961968
"</value>";
962969
// @formatter:on
970+
971+
public static void main(String[] args) throws Exception {
972+
String[] names = { "XVA_ova_base", "XVA_ova_ref", "XVA_ova_vbd", "XVA_ova_vm", "XVA_ova_vdi", "XVA_ova_sr" };
973+
String[] values = { XVA_ova_base, XVA_ova_ref, XVA_ova_vbd, XVA_ova_vm, XVA_ova_vdi, XVA_ova_sr };
974+
IntStream.range(0, values.length).forEach(i -> {
975+
try {
976+
Files.write(Paths.get("src/main/resources", names[i] + ".xml"), values[i].getBytes());
977+
} catch (IOException e) {
978+
throw new IllegalStateException(e);
979+
}
980+
});
981+
}
963982
}

0 commit comments

Comments
 (0)