From f8cf5ae43f741ffc99bef1da0a9612095769142f Mon Sep 17 00:00:00 2001 From: "John D. Ament" Date: Wed, 17 Aug 2016 20:26:07 -0400 Subject: [PATCH] DELTASPIKE-1191 Document duplications in gradle. Minor text clean up in test control as well. --- .../src/main/asciidoc/test-control.adoc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/documentation/src/main/asciidoc/test-control.adoc b/documentation/src/main/asciidoc/test-control.adoc index c8aa27730..ce877c88d 100644 --- a/documentation/src/main/asciidoc/test-control.adoc +++ b/documentation/src/main/asciidoc/test-control.adoc @@ -427,7 +427,7 @@ constructor) and specify the target-type via `@TypedMock`. === JSF (via MyFaces-Test) -add on of +add one of * org.apache.deltaspike.testcontrol.impl.jsf.MockedJsf2TestContainer * org.apache.deltaspike.testcontrol.impl.jsf.MockedJsfTestContainerAdapter @@ -436,7 +436,7 @@ add on of as content to -/META-INF/services/org.apache.deltaspike.testcontrol.spi.ExternalContainer +`/META-INF/services/org.apache.deltaspike.testcontrol.spi.ExternalContainer` (in your config-folder for tests, e.g. test/resources) @@ -570,14 +570,18 @@ for resources to point to where the compiled code lives. This is an example of ---------------------------------------------------------------------------------------------------------- sourceSets { main { - output.resourcesDir = 'build/classes/main' - output.classesDir = 'build/classes/main' + output.resourcesDir = output.classesDir } test { - output.resourcesDir = 'build/classes/test' - output.classesDir = 'build/classes/test' + output.resourcesDir = output.classesDir } } + +// ensure you're excluding duplicates + +jar { + duplicatesStrategy = 'exclude' +} ---------------------------------------------------------------------------------------------------------- == SPI