Merge pull request #1004 from nosqlbench/cleanup-includes

restore included examples to download artifact
This commit is contained in:
Jonathan Shook 2023-02-06 15:30:58 -06:00 committed by GitHub
commit 564a0c5f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 2 deletions

View File

@ -122,7 +122,8 @@ public class NBCLIScenarioParser {
if (nameparts.length==1) {
Map<String, String> namedScenario = scenarios.getNamedScenario(scenarioName);
if (namedScenario==null) {
throw new BasicError("Named step '" + scenarioName + "' was not found.");
throw new BasicError("Unable to find named scenario '" + scenarioName + "' in workload '" + workloadName
+ "', but you can pick from one of: " + String.join(", ", scenarios.getScenarioNames()));
}
namedSteps.putAll(namedScenario);
} else {

View File

@ -465,6 +465,14 @@
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>log4j2.xml</exclude>
</excludes>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
@ -473,7 +481,7 @@
</excludes>
<filtering>true</filtering>
</testResource>
<testResource>
<testResource> <!-- Not sure why the complementary configs are here.. -->
<directory>src/test/resources</directory>
<includes>
<include>log4j2-test.xml</include>

View File

@ -82,9 +82,19 @@
<includes>
<include>version.properties</include>
<include>nb_version_info.md</include>
<include>log4j2.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>examples/**</include>
<include>scripts/**</include>
<include>**/*.md</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
<plugins>