Merge branch 'master' of https://github.com/Microsoft/vscode-remote-try-java
This commit is contained in:
@@ -43,4 +43,4 @@ RUN if [ "$INSTALL_NODE" = "true" ]; then /bin/bash /tmp/library-scripts/node-de
|
|||||||
|
|
||||||
# [Optional] Uncomment this section to install additional OS packages.
|
# [Optional] Uncomment this section to install additional OS packages.
|
||||||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||||
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -10,18 +10,18 @@ Follow these steps to open this sample in a container:
|
|||||||
|
|
||||||
1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started).
|
1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started).
|
||||||
|
|
||||||
2. To use this repository, you can either open a locally cloned copy of the code:
|
2. To use this repository, you can either open the repository in an isolated Docker volume:
|
||||||
|
|
||||||
- Clone this repository to your local filesystem.
|
|
||||||
- Press <kbd>F1</kbd> and select the **Remote-Containers: Open Folder in Container...** command.
|
|
||||||
- Select the cloned copy of this folder, wait for the container to start, and try things out!
|
|
||||||
|
|
||||||
Or open the repository in an isolated Docker volume:
|
|
||||||
|
|
||||||
- Press <kbd>F1</kbd> and select the **Remote-Containers: Try a Sample...** command.
|
- Press <kbd>F1</kbd> and select the **Remote-Containers: Try a Sample...** command.
|
||||||
- Choose the "Java" sample, wait for the container to start and try things out!
|
- Choose the "Java" sample, wait for the container to start and try things out!
|
||||||
> **Note:** Under the hood, this will use **Remote-Containers: Open Repository in Container...** command to clone the source code in a Docker volume instead of the local filesystem.
|
> **Note:** Under the hood, this will use **Remote-Containers: Open Repository in Container...** command to clone the source code in a Docker volume instead of the local filesystem.
|
||||||
|
|
||||||
|
Or open a locally cloned copy of the code:
|
||||||
|
|
||||||
|
- Clone this repository to your local filesystem.
|
||||||
|
- Press <kbd>F1</kbd> and select the **Remote-Containers: Open Folder in Container...** command.
|
||||||
|
- Select the cloned copy of this folder, wait for the container to start, and try things out!
|
||||||
|
|
||||||
## Things to try
|
## Things to try
|
||||||
|
|
||||||
Once you have this sample opened in a container, you'll be able to work with it like you would locally.
|
Once you have this sample opened in a container, you'll be able to work with it like you would locally.
|
||||||
@@ -40,7 +40,7 @@ Some things to try:
|
|||||||
- Press <kbd>F5</kbd> to launch the app in the container.
|
- Press <kbd>F5</kbd> to launch the app in the container.
|
||||||
- Once the breakpoint is hit, try hovering over variables, examining locals, and more.
|
- Once the breakpoint is hit, try hovering over variables, examining locals, and more.
|
||||||
4. **Run a Test:**
|
4. **Run a Test:**
|
||||||
- Open `src/main/java/com/mycompany/app/AppTest.java`.
|
- Open `src/test/java/com/mycompany/app/AppTest.java`.
|
||||||
- Put a breakpoint in a test.
|
- Put a breakpoint in a test.
|
||||||
- Click the `Debug Test` in the Code Lens above the function and watch it hit the breakpoint.
|
- Click the `Debug Test` in the Code Lens above the function and watch it hit the breakpoint.
|
||||||
|
|
||||||
|
|||||||
6
pom.xml
6
pom.xml
@@ -16,9 +16,9 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
<jdk.version>1.8</jdk.version>
|
<jdk.version>11</jdk.version>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>11</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>11</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
|
|||||||
Reference in New Issue
Block a user