Initial
This commit is contained in:
		
							
								
								
									
										44
									
								
								.classpath
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								.classpath
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<classpath>
 | 
				
			||||||
 | 
						<classpathentry kind="src" output="target/classes" path="src/main/java">
 | 
				
			||||||
 | 
							<attributes>
 | 
				
			||||||
 | 
								<attribute name="optional" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="maven.pomderived" value="true"/>
 | 
				
			||||||
 | 
							</attributes>
 | 
				
			||||||
 | 
						</classpathentry>
 | 
				
			||||||
 | 
						<classpathentry kind="src" output="target/test-classes" path="src/test/java">
 | 
				
			||||||
 | 
							<attributes>
 | 
				
			||||||
 | 
								<attribute name="optional" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="maven.pomderived" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="test" value="true"/>
 | 
				
			||||||
 | 
							</attributes>
 | 
				
			||||||
 | 
						</classpathentry>
 | 
				
			||||||
 | 
						<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
 | 
				
			||||||
 | 
							<attributes>
 | 
				
			||||||
 | 
								<attribute name="maven.pomderived" value="true"/>
 | 
				
			||||||
 | 
							</attributes>
 | 
				
			||||||
 | 
						</classpathentry>
 | 
				
			||||||
 | 
						<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
 | 
				
			||||||
 | 
							<attributes>
 | 
				
			||||||
 | 
								<attribute name="maven.pomderived" value="true"/>
 | 
				
			||||||
 | 
							</attributes>
 | 
				
			||||||
 | 
						</classpathentry>
 | 
				
			||||||
 | 
						<classpathentry kind="src" path="target/generated-sources/annotations">
 | 
				
			||||||
 | 
							<attributes>
 | 
				
			||||||
 | 
								<attribute name="optional" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="maven.pomderived" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="ignore_optional_problems" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="m2e-apt" value="true"/>
 | 
				
			||||||
 | 
							</attributes>
 | 
				
			||||||
 | 
						</classpathentry>
 | 
				
			||||||
 | 
						<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
 | 
				
			||||||
 | 
							<attributes>
 | 
				
			||||||
 | 
								<attribute name="optional" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="maven.pomderived" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="ignore_optional_problems" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="m2e-apt" value="true"/>
 | 
				
			||||||
 | 
								<attribute name="test" value="true"/>
 | 
				
			||||||
 | 
							</attributes>
 | 
				
			||||||
 | 
						</classpathentry>
 | 
				
			||||||
 | 
						<classpathentry kind="output" path="target/classes"/>
 | 
				
			||||||
 | 
					</classpath>
 | 
				
			||||||
							
								
								
									
										15
									
								
								.devcontainer/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								.devcontainer/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					#-----------------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					# Copyright (c) Microsoft Corporation. All rights reserved.
 | 
				
			||||||
 | 
					# Licensed under the MIT License. See LICENSE in the project root for license information.
 | 
				
			||||||
 | 
					#-----------------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					FROM maven:3.6-jdk-8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install git, process tools
 | 
				
			||||||
 | 
					RUN apt-get update && apt-get -y install git procps
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Clean up
 | 
				
			||||||
 | 
					RUN apt-get autoremove -y \
 | 
				
			||||||
 | 
					    && apt-get clean -y \
 | 
				
			||||||
 | 
					    && rm -rf /var/lib/apt/lists/*
 | 
				
			||||||
 | 
						
 | 
				
			||||||
							
								
								
									
										7
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
						"name": "Java Sample",
 | 
				
			||||||
 | 
						"dockerFile": "Dockerfile",
 | 
				
			||||||
 | 
						"extensions": [
 | 
				
			||||||
 | 
							"vscjava.vscode-java-pack"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -328,3 +328,7 @@ ASALocalRun/
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# MFractors (Xamarin productivity tool) working folder 
 | 
					# MFractors (Xamarin productivity tool) working folder 
 | 
				
			||||||
.mfractor/
 | 
					.mfractor/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					*.DS_Store
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					target
 | 
				
			||||||
							
								
								
									
										23
									
								
								.project
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.project
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<projectDescription>
 | 
				
			||||||
 | 
						<name>my-app</name>
 | 
				
			||||||
 | 
						<comment></comment>
 | 
				
			||||||
 | 
						<projects>
 | 
				
			||||||
 | 
						</projects>
 | 
				
			||||||
 | 
						<buildSpec>
 | 
				
			||||||
 | 
							<buildCommand>
 | 
				
			||||||
 | 
								<name>org.eclipse.jdt.core.javabuilder</name>
 | 
				
			||||||
 | 
								<arguments>
 | 
				
			||||||
 | 
								</arguments>
 | 
				
			||||||
 | 
							</buildCommand>
 | 
				
			||||||
 | 
							<buildCommand>
 | 
				
			||||||
 | 
								<name>org.eclipse.m2e.core.maven2Builder</name>
 | 
				
			||||||
 | 
								<arguments>
 | 
				
			||||||
 | 
								</arguments>
 | 
				
			||||||
 | 
							</buildCommand>
 | 
				
			||||||
 | 
						</buildSpec>
 | 
				
			||||||
 | 
						<natures>
 | 
				
			||||||
 | 
							<nature>org.eclipse.jdt.core.javanature</nature>
 | 
				
			||||||
 | 
							<nature>org.eclipse.m2e.core.maven2Nature</nature>
 | 
				
			||||||
 | 
						</natures>
 | 
				
			||||||
 | 
					</projectDescription>
 | 
				
			||||||
							
								
								
									
										2
									
								
								.settings/org.eclipse.jdt.apt.core.prefs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.settings/org.eclipse.jdt.apt.core.prefs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					eclipse.preferences.version=1
 | 
				
			||||||
 | 
					org.eclipse.jdt.apt.aptEnabled=false
 | 
				
			||||||
							
								
								
									
										9
									
								
								.settings/org.eclipse.jdt.core.prefs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.settings/org.eclipse.jdt.core.prefs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					eclipse.preferences.version=1
 | 
				
			||||||
 | 
					org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
 | 
				
			||||||
 | 
					org.eclipse.jdt.core.compiler.compliance=1.5
 | 
				
			||||||
 | 
					org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
 | 
				
			||||||
 | 
					org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
 | 
				
			||||||
 | 
					org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
 | 
				
			||||||
 | 
					org.eclipse.jdt.core.compiler.processAnnotations=disabled
 | 
				
			||||||
 | 
					org.eclipse.jdt.core.compiler.release=disabled
 | 
				
			||||||
 | 
					org.eclipse.jdt.core.compiler.source=1.5
 | 
				
			||||||
							
								
								
									
										4
									
								
								.settings/org.eclipse.m2e.core.prefs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.settings/org.eclipse.m2e.core.prefs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					activeProfiles=
 | 
				
			||||||
 | 
					eclipse.preferences.version=1
 | 
				
			||||||
 | 
					resolveWorkspaceProjects=true
 | 
				
			||||||
 | 
					version=1
 | 
				
			||||||
							
								
								
									
										15
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					    "configurations": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "type": "java",
 | 
				
			||||||
 | 
					            "name": "Launch App",
 | 
				
			||||||
 | 
					            "request": "launch",
 | 
				
			||||||
 | 
					            "cwd": "${workspaceFolder}",
 | 
				
			||||||
 | 
					            "console": "internalConsole",
 | 
				
			||||||
 | 
					            "stopOnEntry": false,
 | 
				
			||||||
 | 
					            "mainClass": "com.mycompany.app.App",
 | 
				
			||||||
 | 
					            "args": "",
 | 
				
			||||||
 | 
					            "projectName": "my-app"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							@@ -1,5 +1,14 @@
 | 
				
			|||||||
 | 
					# Java Sample Project for Visual Studio Remote - Containers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Contributing
 | 
					This is a sample project to go along with the "try" quick start for the VS Code Remote - Containers extension.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Using the sample:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. **[Windows]** Disable automatic line ending conversion for Git on the *Windows side* (given Linux and Windows use different line endings). Run: `git config --global core.autocrlf false`
 | 
				
			||||||
 | 
					2. Follow the steps at [https://aka.ms/vscode-remote/containers/getting-started](https://aka.ms/vscode-remote/containers/getting-started).
 | 
				
			||||||
 | 
					3. Edit files, launch the program, and try things out!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Contributing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This project welcomes contributions and suggestions.  Most contributions require you to agree to a
 | 
					This project welcomes contributions and suggestions.  Most contributions require you to agree to a
 | 
				
			||||||
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
 | 
					Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
 | 
				
			||||||
@@ -12,3 +21,8 @@ provided by the bot. You will only need to do this once across all repos using o
 | 
				
			|||||||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
 | 
					This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
 | 
				
			||||||
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
 | 
					For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
 | 
				
			||||||
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
 | 
					contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## License
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Copyright © Microsoft Corporation All rights reserved.<br />
 | 
				
			||||||
 | 
					Licensed under the MIT License. See LICENSE in the project root for license information.
 | 
				
			||||||
							
								
								
									
										29
									
								
								pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								pom.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
				
			||||||
 | 
					  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
				
			||||||
 | 
					  <modelVersion>4.0.0</modelVersion>
 | 
				
			||||||
 | 
					  <groupId>com.mycompany.app</groupId>
 | 
				
			||||||
 | 
					  <artifactId>my-app</artifactId>
 | 
				
			||||||
 | 
					  <packaging>jar</packaging>
 | 
				
			||||||
 | 
					  <version>1.0-SNAPSHOT</version>
 | 
				
			||||||
 | 
					  <name>my-app</name>
 | 
				
			||||||
 | 
					  <url>http://maven.apache.org</url>
 | 
				
			||||||
 | 
					  <dependencies>
 | 
				
			||||||
 | 
					    <dependency>
 | 
				
			||||||
 | 
					      <groupId>junit</groupId>
 | 
				
			||||||
 | 
					      <artifactId>junit</artifactId>
 | 
				
			||||||
 | 
					      <version>4.12</version>
 | 
				
			||||||
 | 
					      <scope>test</scope>
 | 
				
			||||||
 | 
					    </dependency>
 | 
				
			||||||
 | 
					  </dependencies>
 | 
				
			||||||
 | 
					  <build>
 | 
				
			||||||
 | 
					    <pluginManagement>
 | 
				
			||||||
 | 
					      <plugins>
 | 
				
			||||||
 | 
					        <plugin>
 | 
				
			||||||
 | 
					          <groupId>org.apache.maven.plugins</groupId>
 | 
				
			||||||
 | 
					          <artifactId>maven-surefire-plugin</artifactId>
 | 
				
			||||||
 | 
					          <version>3.0.0-M3</version>
 | 
				
			||||||
 | 
					        </plugin>
 | 
				
			||||||
 | 
					      </plugins>
 | 
				
			||||||
 | 
					    </pluginManagement>
 | 
				
			||||||
 | 
					  </build>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
							
								
								
									
										14
									
								
								src/main/java/com/mycompany/app/App.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/main/java/com/mycompany/app/App.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					/*----------------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					 * Copyright (c) Microsoft Corporation. All rights reserved.
 | 
				
			||||||
 | 
					 * Licensed under the MIT License. See LICENSE in the project root for license information.
 | 
				
			||||||
 | 
					 *---------------------------------------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package com.mycompany.app;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class App 
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public static void main( String[] args )
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        System.out.println( "Hello Remote World!" );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										23
									
								
								src/test/java/com/mycompany/app/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/test/java/com/mycompany/app/AppTest.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					package com.mycompany.app;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import org.junit.Test;
 | 
				
			||||||
 | 
					import static org.junit.Assert.*;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class AppTest
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public AppTest() {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Test
 | 
				
			||||||
 | 
					    public void testApp()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        assertTrue( true );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Test
 | 
				
			||||||
 | 
					    public void testMore()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        assertTrue( true );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user