Skip to content

Commit 659ad31

Browse files
authored
Merge pull request #7971 from microsoft/java-videos
Java: Fix video URLs
2 parents 487d357 + 8ce19c2 commit 659ad31

10 files changed

+98
-180
lines changed

docs/java/java-build.md

Lines changed: 21 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -31,48 +31,41 @@ Once a Maven project is loaded, the extension will be activated and it will auto
3131

3232
The Maven extension also supports searching Maven Central to resolve unknown types in your source code. You can do this by selecting the **Resolve unknown type** link shown on hover.
3333

34-
<video autoplay loop muted playsinline controls title="Resolve unknown type">
35-
<source src="/docs/java/java-build/maven-resolve-unknown-type.mp4" type="video/mp4">
34+
<video src="images/java-build/maven-resolve-unknown-type.mp4" autoplay loop muted playsinline controls title="Resolve unknown type">
3635
</video>
3736

3837
### Working with POM.xml
3938

4039
The extension provides code snippets and auto completion for adding Maven dependencies based on local Maven repositories. See how easy it is to add a new dependency to your `pom.xml` with those convenient features.
4140

42-
<video autoplay loop muted playsinline controls title="Add a new dependency to POM file">
43-
<source src="/docs/java/java-build/maven-pom-editing.mp4" type="video/mp4">
41+
<video src="images/java-build/maven-pom-editing.mp4" autoplay loop muted playsinline controls title="Add a new dependency to POM file">
4442
</video>
4543

4644
The extension also enables you to generate effective POM.
4745

48-
<video autoplay loop muted playsinline controls title="Generate effective POM">
49-
<source src="/docs/java/java-build/maven-effective-pom.mp4" type="video/mp4">
46+
<video src="images/java-build/maven-effective-pom.mp4" autoplay loop muted playsinline controls title="Generate effective POM">
5047
</video>
5148

5249
You can also use the command **Maven: Add a Dependency** (or `maven.project.addDependency`) to help add a new dependency to `pom.xml`. The process is interactive.
5350

54-
<video autoplay loop muted playsinline controls title="Add a dependency">
55-
<source src="/docs/java/java-build/maven-add-dependency.mp4" type="video/mp4">
51+
<video src="images/java-build/maven-add-dependency.mp4" autoplay loop muted playsinline controls title="Add a dependency">
5652
</video>
5753

5854
You can also add dependencies through the project view, which calls the same Maven command.
5955

60-
<video autoplay loop muted playsinline controls title="Add dependency through project view">
61-
<source src="/docs/java/java-build/maven-add-dependency-2.mp4" type="video/mp4">
56+
<video src="images/java-build/maven-add-dependency-2.mp4" autoplay loop muted playsinline controls title="Add dependency through project view">
6257
</video>
6358

6459
Furthermore, VS Code also supports showing dependencies in a tree view, which allows you to inspect all dependencies in your project at a single place and check for potential issues.
6560

66-
<video autoplay loop muted playsinline controls title="Inspect Maven dependency tree">
67-
<source src="/docs/java/java-build/maven-dependency-tree.mp4" type="video/mp4">
61+
<video src="images/java-build/maven-dependency-tree.mp4" autoplay loop muted playsinline controls title="Inspect Maven dependency tree">
6862
</video>
6963

7064
### Execute Maven commands and goals
7165

7266
By right-clicking each Maven project in the Explorer, you can conveniently run Maven goals.
7367

74-
<video autoplay loop muted playsinline controls title="Run Maven goals">
75-
<source src="/docs/java/java-build/maven-run.mp4" type="video/mp4">
68+
<video src="images/java-build/maven-run.mp4" autoplay loop muted playsinline controls title="Run Maven goals">
7669
</video>
7770

7871
The extension also preserves the history of goals for each project, so you can quickly rerun the previous command, which is useful when you're running a long custom goal.
@@ -82,26 +75,22 @@ There are two ways to rerun a goal:
8275
1. In the Command Palette, run **Maven: History**, then select a project and a command from its history.
8376
2. Right-click a project and select **History**. You can then select a previous command from history.
8477

85-
<video autoplay loop muted playsinline controls title="Run goals from Maven history">
86-
<source src="/docs/java/java-build/maven-history.mp4" type="video/mp4">
78+
<video src="images/java-build/maven-history.mp4" autoplay loop muted playsinline controls title="Run goals from Maven history">
8779
</video>
8880

8981
You can also specify your favorite commands in settings for future execution.
9082

91-
<video autoplay loop muted playsinline controls title="Specify favorite commands">
92-
<source src="/docs/java/java-build/maven-favorite-command.mp4" type="video/mp4">
83+
<video src="images/java-build/maven-favorite-command.mp4" autoplay loop muted playsinline controls title="Specify favorite commands">
9384
</video>
9485

9586
For each plug-in you use with your project, the extension also provides you an easy way to access the goals within each plugin.
9687

97-
<video autoplay loop muted playsinline controls title="Easy way to access goals within each plugin">
98-
<source src="/docs/java/java-build/maven-plugin-goal.mp4" type="video/mp4">
88+
<video src="images/java-build/maven-plugin-goal.mp4" autoplay loop muted playsinline controls title="Easy way to access goals within each plugin">
9989
</video>
10090

10191
To debug Maven goals, right-click on a goal and start debugging. The Maven extension will call the Java debugger with the right parameters. This is a handy, time-saving feature.
10292

103-
<video autoplay loop muted playsinline controls title="Debug Maven goals">
104-
<source src="/docs/java/java-build/debug-maven-plugin-goals.mp4" type="video/mp4">
93+
<video src="images/java-build/debug-maven-plugin-goals.mp4" autoplay loop muted playsinline controls title="Debug Maven goals">
10594
</video>
10695

10796
### Generate project from Maven Archetype
@@ -116,20 +105,18 @@ There are several ways to create a Maven project:
116105

117106
2. Open the **Command Palette** (`kb(workbench.action.showCommands)`), search for **Create Java Project** command.
118107

119-
<video autoplay loop muted playsinline controls title="Create Java Project Command">
120-
<source src="/docs/java/java-build/maven-archetype-command.mp4" type="video/mp4">
108+
<video src="images/java-build/maven-archetype-command.mp4" autoplay loop muted playsinline controls title="Create Java Project Command">
121109
</video>
122110

123111
3. Right-click on a target folder and select **Create Maven Project**.
124112

125-
<video autoplay loop muted playsinline controls title="Create Maven Project Command">
126-
<source src="/docs/java/java-build/maven-archetype-folder.mp4" type="video/mp4">
113+
<video src="images/java-build/maven-archetype-folder.mp4" autoplay loop muted playsinline controls title="Create Maven Project Command">
127114
</video>
128115

129116
## Gradle
130117

131118
VS Code supports Gradle Java projects (excluding Android) through the [Gradle for Java](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle) extension. This extension offers several components to enhance your Gradle Java project experience:
132-
- **Gradle Build Server:** The [Gradle Build Server](https://github.com/microsoft/build-server-for-gradle) is used to import gradle projects and delegate build tasks to the Gradle daemon, ensuring consistent project output as if running Gradle tasks from the command line.
119+
- **Gradle Build Server:** The [Gradle Build Server](https://github.com/microsoft/build-server-for-gradle) is used to import Gradle projects and delegate build tasks to the Gradle daemon, ensuring consistent project output as if running Gradle tasks from the command line.
133120
- **Visual Interface:** Allows you to view and manage Gradle tasks and project dependencies, and run Gradle tasks directly within VS Code.
134121
- **Gradle Language Server:** Provides an improved authoring experience for Gradle build files, including syntax highlighting, error reporting, and auto-completion.
135122

@@ -139,10 +126,9 @@ By default, if you have installed the Gradle for Java extension, the Gradle Buil
139126
You can view the Gradle build output in the Build Server for Gradle (Build) output channel and trace the interactions between VS Code and the Gradle Build Server in the Build Server for Gradle (Log) output channel.
140127

141128
### Delegate tests to Gradle
142-
The extension supports delegating the test execution to Gradle. You can configure the test profile you want to use in the Testing explorer.
129+
The extension supports delegating the test execution to Gradle. You can configure the test profile you want to use in the Testing Explorer.
143130

144-
<video autoplay loop muted playsinline controls title="Delegate tests to Gradle">
145-
<source src="/docs/java/java-build/delegate-test-to-gradle.mp4" type="video/mp4">
131+
<video src="images/java-build/delegate-test-to-gradle.mp4" autoplay loop muted playsinline controls title="Delegate tests to Gradle">
146132
</video>
147133

148134
> Note: Make sure you have installed the [Test Runner for Java](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test) extension to use this feature.
@@ -151,14 +137,12 @@ The extension supports delegating the test execution to Gradle. You can configur
151137

152138
When you open a Gradle project in VSCode, you can find some useful Gradle views by clicking the Gradle Side Bar item. **Gradle Projects** view lists all the Gradle projects found in the workspace. You can view, run, or debug Gradle tasks here.
153139

154-
<video autoplay loop muted playsinline controls title="Gradle tasks view">
155-
<source src="/docs/java/java-build/gradle-tasks.mp4" type="video/mp4">
140+
<video src="images/java-build/gradle-tasks.mp4" autoplay loop muted playsinline controls title="Gradle tasks view">
156141
</video>
157142

158143
When there are many Gradle tasks in the workspace, it might be hard to find a specific task. The extension offers a **Pinned Tasks** view to help you pin your favorite tasks so that you can easily find them in a separate view. You can also see recently executed tasks in the **Recent Tasks** view.
159144

160-
<video autoplay loop muted playsinline controls title="Pin a Gradle task">
161-
<source src="/docs/java/java-build/gradle-pinned-recent-tasks.mp4" type="video/mp4">
145+
<video src="images/java-build/gradle-pinned-recent-tasks.mp4" autoplay loop muted playsinline controls title="Pin a Gradle task">
162146
</video>
163147

164148
### Viewing Gradle dependencies
@@ -171,8 +155,7 @@ In the **Gradle Projects** view, you can find a **Dependencies** item under each
171155

172156
The **Gradle Daemons** view shows the daemon status of the current workspace. It lists all the running Gradle daemons in the same version as the workspace. You can choose to stop a specific one or all the daemons in this view.
173157

174-
<video autoplay loop muted playsinline controls title="Managing Gradle Daemon">
175-
<source src="/docs/java/java-build/gradle-daemons.mp4" type="video/mp4">
158+
<video src="images/java-build/gradle-daemons.mp4" autoplay loop muted playsinline controls title="Managing Gradle Daemons">
176159
</video>
177160

178161
### Authoring build files
@@ -193,14 +176,12 @@ If there is any syntax error (missing characters, type not found, etc.) in the o
193176

194177
The extension supports basic auto completions for a Gradle file, when you're trying to type Gradle closures or properties in a Gradle script, the extension will suggest available closures or properties for you.
195178

196-
<video autoplay loop muted playsinline controls title="Auto completion for Gradle file">
197-
<source src="/docs/java/java-build/gradle-auto-completion.mp4" type="video/mp4">
179+
<video src="images/java-build/gradle-auto-completion.mp4" autoplay loop muted playsinline controls title="Auto completion for Gradle file">
198180
</video>
199181

200182
When you are trying to declare a new dependency, the extension will provide a dependency candidate list for you.
201183

202-
<video autoplay loop muted playsinline controls title="Auto completion for new dependency for Gradle">
203-
<source src="/docs/java/java-build/gradle-dependency-completion.mp4" type="video/mp4">
184+
<video src="images/java-build/gradle-dependency-completion.mp4" autoplay loop muted playsinline controls title="Auto completion for new dependency for Gradle">
204185
</video>
205186

206187
## Additional resources

0 commit comments

Comments
 (0)