- putTarEntry(baos.toByteArray(), tos, "gigi.properties");
- putTarEntry(keystorepw, tos, "keystorepw");
- putTarEntry(truststorepw, tos, "truststorepw");
- putTarEntry(keystore, tos, "keystore.pkcs12");
- putTarEntry(cacerts, tos, "cacerts.jks");
- tos.close();
+ public static void writeGigiConfig(OutputStream target, byte[] keystorepw, byte[] truststorepw, Properties mainprop, byte[] cacerts, byte[] keystore) throws IOException {
+ TarOutputStream tos = new TarOutputStream(target);
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ mainprop.store(baos, "");