From 7333f12a5d252f33cc7bc19b446fa4bb84b59116 Mon Sep 17 00:00:00 2001 From: Holly Cummins Date: Thu, 13 Jul 2023 18:59:56 +0100 Subject: [PATCH] Move advice about powershell and windows to common location --- .../main/asciidoc/_includes/devtools/create-app.adoc | 5 +++++ .../main/asciidoc/getting-started-dev-services.adoc | 12 +----------- docs/src/main/asciidoc/getting-started.adoc | 7 ------- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/docs/src/main/asciidoc/_includes/devtools/create-app.adoc b/docs/src/main/asciidoc/_includes/devtools/create-app.adoc index fe67902418d25b..0c32e667cb9c22 100644 --- a/docs/src/main/asciidoc/_includes/devtools/create-app.adoc +++ b/docs/src/main/asciidoc/_includes/devtools/create-app.adoc @@ -99,3 +99,8 @@ ifndef::devtools-no-gradle[] To create a Gradle project, add the `-DbuildTool=gradle` or `-DbuildTool=gradle-kotlin-dsl` option. endif::[] **** + +For Windows users: + +- If using cmd , (don't use backward slash `\` and put everything on the same line) +- If using Powershell , wrap `-D` parameters in double quotes e.g. `"-DprojectArtifactId={create-app-artifact-id}"` diff --git a/docs/src/main/asciidoc/getting-started-dev-services.adoc b/docs/src/main/asciidoc/getting-started-dev-services.adoc index e9579ed9670e67..215da6304270c9 100644 --- a/docs/src/main/asciidoc/getting-started-dev-services.adoc +++ b/docs/src/main/asciidoc/getting-started-dev-services.adoc @@ -57,28 +57,18 @@ The solution is located in the `getting-started-dev-services` {quickstarts-tree- The easiest way to create a new Quarkus project is to open a terminal and run the following command: -For Linux and macOS users - :create-app-artifact-id: getting-started-dev-services :create-app-extensions: resteasy-reactive :create-app-code: include::{includes}/devtools/create-app.adoc[] -For Windows users: - -- If using cmd , (don't use backward slash `\` and put everything on the same line) -- If using Powershell , wrap `-D` parameters in double quotes e.g. `"-DprojectArtifactId=getting-started"` - For an explanation of what's in the generated application, see the xref:getting-started.adoc[First application guide]. === Running the application Launch the application in dev mode -[source, shell] ----- -./mvnw quarkus:dev ----- +include::{includes}/devtools/dev.adoc[] Once the application is up, visit http://localhost:8080/hello. It should show a "Hello from RESTEasy Reactive" message. diff --git a/docs/src/main/asciidoc/getting-started.adoc b/docs/src/main/asciidoc/getting-started.adoc index 38b24e00ed2952..0dc5ca2ba809de 100644 --- a/docs/src/main/asciidoc/getting-started.adoc +++ b/docs/src/main/asciidoc/getting-started.adoc @@ -62,18 +62,11 @@ The solution is located in the `getting-started` {quickstarts-tree-url}/getting- The easiest way to create a new Quarkus project is to open a terminal and run the following command: -For Linux & MacOS users - :create-app-artifact-id: getting-started :create-app-extensions: resteasy-reactive :create-app-code: include::{includes}/devtools/create-app.adoc[] -For Windows users: - -- If using cmd , (don't use backward slash `\` and put everything on the same line) -- If using Powershell , wrap `-D` parameters in double quotes e.g. `"-DprojectArtifactId=getting-started"` - It generates the following in `./getting-started`: * the Maven structure