From bb71172f97b9227098a2b452a316e659b05e6340 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Mon, 19 Sep 2016 16:49:42 +0200 Subject: Allow source directories in standalone application. This allows Application instances to run tests referencing config definitions without first building the jar containing those config definitions. Application currently instantiates Vespa models directly and (via dependency injection) through standalone container. --- .../com/yahoo/container/standalone/StandaloneContainerApplication.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'standalone-container') diff --git a/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneContainerApplication.scala b/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneContainerApplication.scala index 324de2771f4..8157170e6d1 100644 --- a/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneContainerApplication.scala +++ b/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneContainerApplication.scala @@ -166,7 +166,7 @@ object StandaloneContainerApplication { networkingOption: Networking, configModelRepo: ConfigModelRepo = new ConfigModelRepo): (MockRoot, Container) = { val logger = new BaseDeployLogger - val rawApplicationPackage = new FilesApplicationPackage.Builder(applicationPath.toFile).preprocessedDir(preprocessedApplicationDir).build() + val rawApplicationPackage = new FilesApplicationPackage.Builder(applicationPath.toFile).includeSourceFiles(true).preprocessedDir(preprocessedApplicationDir).build() // TODO: Needed until we get rid of semantic rules val applicationPackage = rawApplicationPackage.preprocess(Zone.defaultZone(), new RuleConfigDeriver { override def derive(ruleBaseDir: String, outputDir: String): Unit = {} -- cgit v1.2.3