Skip to content

Commit 7217d80

Browse files
authored
Initial check-in for plugin project, ready to compile and have dependencies. (#6)
* 1.finish the rename for plugin project, disable checkstyle rules since it is required to modify the jdt providers. 2.change the initial version in pom.xml to 0.1.0 Signed-off-by: andxu <andxu@microsoft.com> * 1. adjust package name to remove jdt since this plugin is a provider using jdt. Signed-off-by: andxu <andxu@microsoft.com>
1 parent 4ed074e commit 7217d80

10 files changed

Lines changed: 228 additions & 177 deletions

File tree

Lines changed: 85 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,88 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
<parent>
6-
<groupId>com.microsoft.java</groupId>
7-
<artifactId>parent</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
9-
</parent>
10-
<artifactId>com.microsoft.java.debug.core</artifactId>
11-
<packaging>jar</packaging>
12-
<name>${base.name} :: Debugger Core</name>
13-
<properties>
14-
</properties>
15-
<build>
16-
<directory>target</directory>
17-
<outputDirectory>target/classes</outputDirectory>
18-
<testOutputDirectory>target/test-classes</testOutputDirectory>
19-
<sourceDirectory>src/main/java</sourceDirectory>
20-
<testSourceDirectory>src/test/java</testSourceDirectory>
21-
<plugins>
22-
<plugin>
23-
<groupId>org.apache.maven.plugins</groupId>
24-
<artifactId>maven-failsafe-plugin</artifactId>
25-
</plugin>
26-
<plugin>
27-
<groupId>org.apache.maven.plugins</groupId>
28-
<artifactId>maven-compiler-plugin</artifactId>
29-
<version>3.7.0</version>
30-
<configuration>
31-
<source>1.8</source>
32-
<target>1.8</target>
33-
</configuration>
34-
</plugin>
35-
<plugin>
36-
<groupId>org.apache.maven.plugins</groupId>
37-
<artifactId>maven-checkstyle-plugin</artifactId>
38-
</plugin>
39-
</plugins>
40-
</build>
41-
<dependencies>
42-
<dependency>
43-
<groupId>com.sun</groupId>
44-
<artifactId>tools</artifactId>
45-
<version>1.8</version>
46-
<scope>system</scope>
47-
<systemPath>${java.home}/../lib/tools.jar</systemPath>
48-
</dependency>
49-
<dependency>
50-
<groupId>org.apache.commons</groupId>
51-
<artifactId>commons-lang3</artifactId>
52-
<version>3.6</version>
53-
</dependency>
54-
<dependency>
55-
<groupId>com.google.code.gson</groupId>
56-
<artifactId>gson</artifactId>
57-
<version>2.7</version>
58-
</dependency>
59-
<dependency>
60-
<groupId>io.reactivex.rxjava2</groupId>
61-
<artifactId>rxjava</artifactId>
62-
<version>2.1.1</version>
63-
</dependency>
64-
<dependency>
65-
<groupId>org.reactivestreams</groupId>
66-
<artifactId>reactive-streams</artifactId>
67-
<version>1.0.0</version>
68-
</dependency>
69-
<dependency>
70-
<groupId>commons-io</groupId>
71-
<artifactId>commons-io</artifactId>
72-
<version>2.5</version>
73-
</dependency>
74-
<!-- Dependencies for test -->
75-
<dependency>
76-
<groupId>junit</groupId>
77-
<artifactId>junit</artifactId>
78-
<version>4.12</version>
79-
<scope>test</scope>
80-
</dependency>
81-
<dependency>
82-
<groupId>org.easymock</groupId>
83-
<artifactId>easymock</artifactId>
84-
<version>3.4</version>
85-
<scope>test</scope>
86-
</dependency>
87-
</dependencies>
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>com.microsoft.java</groupId>
7+
<artifactId>parent</artifactId>
8+
<version>0.1.0-SNAPSHOT</version>
9+
</parent>
10+
<artifactId>com.microsoft.java.debug.core</artifactId>
11+
<packaging>jar</packaging>
12+
<name>${base.name} :: Debugger Core</name>
13+
<properties>
14+
</properties>
15+
<build>
16+
<directory>target</directory>
17+
<outputDirectory>target/classes</outputDirectory>
18+
<testOutputDirectory>target/test-classes</testOutputDirectory>
19+
<sourceDirectory>src/main/java</sourceDirectory>
20+
<testSourceDirectory>src/test/java</testSourceDirectory>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-failsafe-plugin</artifactId>
25+
</plugin>
26+
<plugin>
27+
<groupId>org.apache.maven.plugins</groupId>
28+
<artifactId>maven-compiler-plugin</artifactId>
29+
<version>3.7.0</version>
30+
<configuration>
31+
<source>1.8</source>
32+
<target>1.8</target>
33+
</configuration>
34+
</plugin>
35+
<plugin>
36+
<groupId>org.apache.maven.plugins</groupId>
37+
<artifactId>maven-checkstyle-plugin</artifactId>
38+
</plugin>
39+
</plugins>
40+
</build>
41+
<dependencies>
42+
<dependency>
43+
<groupId>com.sun</groupId>
44+
<artifactId>tools</artifactId>
45+
<version>1.8</version>
46+
<scope>system</scope>
47+
<systemPath>${java.home}/../lib/tools.jar</systemPath>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.apache.commons</groupId>
51+
<artifactId>commons-lang3</artifactId>
52+
<version>3.6</version>
53+
</dependency>
54+
<dependency>
55+
<groupId>com.google.code.gson</groupId>
56+
<artifactId>gson</artifactId>
57+
<version>2.7</version>
58+
</dependency>
59+
<dependency>
60+
<groupId>io.reactivex.rxjava2</groupId>
61+
<artifactId>rxjava</artifactId>
62+
<version>2.1.1</version>
63+
</dependency>
64+
<dependency>
65+
<groupId>org.reactivestreams</groupId>
66+
<artifactId>reactive-streams</artifactId>
67+
<version>1.0.0</version>
68+
</dependency>
69+
<dependency>
70+
<groupId>commons-io</groupId>
71+
<artifactId>commons-io</artifactId>
72+
<version>2.5</version>
73+
</dependency>
74+
<!-- Dependencies for test -->
75+
<dependency>
76+
<groupId>junit</groupId>
77+
<artifactId>junit</artifactId>
78+
<version>4.12</version>
79+
<scope>test</scope>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.easymock</groupId>
83+
<artifactId>easymock</artifactId>
84+
<version>3.4</version>
85+
<scope>test</scope>
86+
</dependency>
87+
</dependencies>
8888
</project>

com.microsoft.java.debug.plugin/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: Debug
44
Bundle-SymbolicName: com.microsoft.java.debug.plugin;singleton:=true
5-
Bundle-Version: 0.0.1.qualifier
5+
Bundle-Version: 0.1.0.qualifier
66
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
77
Bundle-ActivationPolicy: lazy
88
Bundle-Activator: com.microsoft.java.debug.plugin.internal.JavaDebuggerServerPlugin

com.microsoft.java.debug.plugin/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
<parent>
66
<groupId>com.microsoft.java</groupId>
77
<artifactId>parent</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
8+
<version>0.1.0-SNAPSHOT</version>
99
</parent>
1010
<artifactId>com.microsoft.java.debug.plugin</artifactId>
1111
<packaging>eclipse-plugin</packaging>
1212
<name>${base.name} :: Debugger Plugin</name>
1313
<properties>
14+
<checkstyle.skip>true</checkstyle.skip>
1415
</properties>
1516
<build>
1617
<plugins>
@@ -40,6 +41,11 @@
4041
<artifactId>reactive-streams</artifactId>
4142
<version>1.0.0</version>
4243
</artifactItem>
44+
<artifactItem>
45+
<groupId>com.microsoft.java</groupId>
46+
<artifactId>com.microsoft.java.debug.core</artifactId>
47+
<version>0.1.0-SNAPSHOT</version>
48+
</artifactItem>
4349
</artifactItems>
4450
</configuration>
4551
</plugin>

com.microsoft.java.debug.plugin/src/main/java/org/eclipse/jdt/ls/debug/adapter/jdt/DebugServerFactory.java renamed to com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/DebugServerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Microsoft Corporation - initial API and implementation
1010
*******************************************************************************/
1111

12-
package org.eclipse.jdt.ls.debug.adapter.jdt;
12+
package com.microsoft.java.debug.plugin.internal;
1313

1414
import org.eclipse.core.runtime.CoreException;
1515
import org.eclipse.core.runtime.IExecutableExtensionFactory;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017 Microsoft Corporation and others.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Microsoft Corporation - initial API and implementation
10+
*******************************************************************************/
11+
12+
package com.microsoft.java.debug.plugin.internal;
13+
14+
public interface IDebugServer {
15+
int getPort();
16+
17+
void start();
18+
19+
void stop();
20+
}

com.microsoft.java.debug.plugin/src/main/java/org/eclipse/jdt/ls/debug/adapter/jdt/JavaDebugServer.java renamed to com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/JavaDebugServer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Microsoft Corporation - initial API and implementation
1010
*******************************************************************************/
1111

12-
package org.eclipse.jdt.ls.debug.adapter.jdt;
12+
package com.microsoft.java.debug.plugin.internal;
1313

1414
import java.io.IOException;
1515
import java.net.ServerSocket;
@@ -19,9 +19,8 @@
1919
import java.util.concurrent.ThreadPoolExecutor;
2020
import java.util.concurrent.TimeUnit;
2121

22-
import org.eclipse.jdt.ls.core.debug.IDebugServer;
23-
import org.eclipse.jdt.ls.debug.adapter.ProtocolServer;
24-
import org.eclipse.jdt.ls.debug.internal.Logger;
22+
import com.microsoft.java.debug.core.Logger;
23+
import com.microsoft.java.debug.core.adapter.ProtocolServer;
2524

2625
public class JavaDebugServer implements IDebugServer {
2726
private static JavaDebugServer singletonInstance;

com.microsoft.java.debug.plugin/src/main/java/org/eclipse/jdt/ls/debug/adapter/jdt/JdtProviderContextFactory.java renamed to com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/JdtProviderContextFactory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* Microsoft Corporation - initial API and implementation
1010
*******************************************************************************/
1111

12-
package org.eclipse.jdt.ls.debug.adapter.jdt;
12+
package com.microsoft.java.debug.plugin.internal;
1313

14-
import org.eclipse.jdt.ls.debug.adapter.IProviderContext;
15-
import org.eclipse.jdt.ls.debug.adapter.ISourceLookUpProvider;
16-
import org.eclipse.jdt.ls.debug.adapter.IVirtualMachineManagerProvider;
17-
import org.eclipse.jdt.ls.debug.adapter.ProviderContext;
14+
import com.microsoft.java.debug.core.adapter.IProviderContext;
15+
import com.microsoft.java.debug.core.adapter.ISourceLookUpProvider;
16+
import com.microsoft.java.debug.core.adapter.IVirtualMachineManagerProvider;
17+
import com.microsoft.java.debug.core.adapter.ProviderContext;
1818

1919
/**
2020
* <code>IProviderContext</code> creator using language server.

0 commit comments

Comments
 (0)