summaryrefslogtreecommitdiffstats
path: root/standalone-container/src/main/scala/com/yahoo/application/container/impl/StandaloneContainerRunner.scala
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-06-01 11:31:13 +0200
committerJon Bratseth <bratseth@oath.com>2018-06-01 11:31:13 +0200
commitcd6e2dd7ab638487c462c40293a0d8db43fdb530 (patch)
treeedf9cec58f4a0e995fd713089779ec5d0a14d134 /standalone-container/src/main/scala/com/yahoo/application/container/impl/StandaloneContainerRunner.scala
parentf7d0fe5fdfad579e867f01acc1d41b2ec77bd785 (diff)
parent5c57852b26126d72b080fb6e0893dc3d633c28c1 (diff)
Merge with master
Diffstat (limited to 'standalone-container/src/main/scala/com/yahoo/application/container/impl/StandaloneContainerRunner.scala')
-rw-r--r--standalone-container/src/main/scala/com/yahoo/application/container/impl/StandaloneContainerRunner.scala27
1 files changed, 0 insertions, 27 deletions
diff --git a/standalone-container/src/main/scala/com/yahoo/application/container/impl/StandaloneContainerRunner.scala b/standalone-container/src/main/scala/com/yahoo/application/container/impl/StandaloneContainerRunner.scala
deleted file mode 100644
index 91634250fc5..00000000000
--- a/standalone-container/src/main/scala/com/yahoo/application/container/impl/StandaloneContainerRunner.scala
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.application.container.impl
-
-import java.nio.file.Files
-import com.yahoo.text.Utf8
-
-/**
- * @author tonytv
- */
-final class StandaloneContainerRunner {
-
-
-
-}
-
-object StandaloneContainerRunner {
- def createApplicationPackage(servicesXml: String) = {
- val applicationDir = Files.createTempDirectory("application")
-
- val servicesXmlFile = applicationDir.resolve("services.xml");
- var content = servicesXml;
- if ( ! servicesXml.startsWith("<?xml"))
- content = """<?xml version="1.0" encoding="utf-8" ?>""" + '\n' + servicesXml
- Files.write(servicesXmlFile, Utf8.toBytes(content))
- applicationDir
- }
-}