From 5eb3c310546ca97488703c464e250169fe4f3788 Mon Sep 17 00:00:00 2001 From: Nugusbayev Kanagat Date: Tue, 5 Dec 2023 20:27:13 +0600 Subject: [PATCH] replaced single quotes with double quotes. added escaped char --- CONTRIBUTING.md | 2 +- .../apm/agent/configuration/ConfigurationExporterTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6496622a31..480fb99a67 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -266,7 +266,7 @@ See [`apm-agent-plugins/README.md`](apm-agent-plugins/README.md) HTML Documentation is generated from text files stored in `docs` folder using [AsciiDoc](http://asciidoc.org/) format. The `configuration.asciidoc` file is generated from running `co.elastic.apm.agent.configuration.ConfigurationExporter` (e.g. via `./mvnw -Dsurefire.failIfNoTests=false -Dtest=ConfigurationExporterTest -pl apm-agent -am clean test` -or on Windows `.\mvnw '-Dsurefire.failIfNoTests=false' '-Dsurefire.failIfNoSpecifiedTests=false' -Dtest=ConfigurationExporterTest -pl apm-agent-builds/apm-agent -am clean test`). +or on Windows `.\mvnw "-Dsurefire.failIfNoTests=false" "-Dsurefire.failIfNoSpecifiedTests=false" -Dtest=ConfigurationExporterTest -pl apm-agent-builds/apm-agent -am clean test`). All the other asciidoc text files are written manually. A preview of the documentation is generated for each pull-request. diff --git a/apm-agent-builds/apm-agent/src/test/java/co/elastic/apm/agent/configuration/ConfigurationExporterTest.java b/apm-agent-builds/apm-agent/src/test/java/co/elastic/apm/agent/configuration/ConfigurationExporterTest.java index 4f37e14085..162fd1155d 100644 --- a/apm-agent-builds/apm-agent/src/test/java/co/elastic/apm/agent/configuration/ConfigurationExporterTest.java +++ b/apm-agent-builds/apm-agent/src/test/java/co/elastic/apm/agent/configuration/ConfigurationExporterTest.java @@ -121,7 +121,7 @@ void testGeneratedConfigurationDocsAreUpToDate() throws IOException, TemplateExc .withFailMessage("The rendered configuration documentation (/docs/configuration.asciidoc) is not up-to-date.\n" + "If you see this error on CI, it means you have to execute the tests locally " + "(./mvnw -Dsurefire.failIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false -Dtest=ConfigurationExporterTest -pl apm-agent -am clean test) " + - "or on Windows(.\\mvnw '-Dsurefire.failIfNoTests=false' '-Dsurefire.failIfNoSpecifiedTests=false' -Dtest=ConfigurationExporterTest -pl apm-agent-builds/apm-agent -am clean test) " + + "or on Windows(.\\mvnw \"-Dsurefire.failIfNoTests=false\" \"-Dsurefire.failIfNoSpecifiedTests=false\" -Dtest=ConfigurationExporterTest -pl apm-agent-builds/apm-agent -am clean test) " + "which will update the rendered docs.\n" + "If you see this error while running the tests locally, there's nothing more to do - the rendered docs have been updated " + "and the following test execution should not have failed.")