Skip to content

Commit a9f1e24

Browse files
authored
rename package from eclipse to microsoft (microsoft#4)
* rename package from eclipse to Microsoft * add pom.xml, plugin required files for debug plugin. Signed-off-by: andxu <[email protected]> * rename package from eclipse to microsoft Signed-off-by: andxu <[email protected]>
1 parent 3b69ec3 commit a9f1e24

File tree

79 files changed

+520
-538
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+520
-538
lines changed

check_style.xml

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<property name="charset" value="UTF-8"/>
2020

2121
<property name="fileExtensions" value="java, properties, xml"/>
22+
<module name="RegexpHeader">
23+
<property name="headerFile" value="${basedir}/microsoft.header" />
24+
</module>
2225
<!-- Checks for whitespace -->
2326
<!-- See http://checkstyle.sf.net/config_whitespace.html
2427
<module name="FileTabCharacter">

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

+85-76
Original file line numberDiff line numberDiff line change
@@ -1,79 +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-compiler-plugin</artifactId>
25-
<version>3.7.0</version>
26-
<configuration>
27-
<source>1.8</source>
28-
<target>1.8</target>
29-
</configuration>
30-
</plugin>
31-
<plugin>
32-
<groupId>org.apache.maven.plugins</groupId>
33-
<artifactId>maven-checkstyle-plugin</artifactId>
34-
</plugin>
35-
</plugins>
36-
</build>
37-
<dependencies>
38-
<dependency>
39-
<groupId>com.sun</groupId>
40-
<artifactId>tools</artifactId>
41-
<version>1.8</version>
42-
<scope>system</scope>
43-
<systemPath>${java.home}/../lib/tools.jar</systemPath>
44-
</dependency>
45-
<dependency>
46-
<groupId>org.apache.commons</groupId>
47-
<artifactId>commons-lang3</artifactId>
48-
<version>3.6</version>
49-
</dependency>
50-
<dependency>
51-
<groupId>com.google.code.gson</groupId>
52-
<artifactId>gson</artifactId>
53-
<version>2.7</version>
54-
</dependency>
55-
<dependency>
56-
<groupId>io.reactivex.rxjava2</groupId>
57-
<artifactId>rxjava</artifactId>
58-
<version>2.1.1</version>
59-
</dependency>
60-
<dependency>
61-
<groupId>org.reactivestreams</groupId>
62-
<artifactId>reactive-streams</artifactId>
63-
<version>1.0.0</version>
64-
</dependency>
65-
<!-- Dependencies for test -->
66-
<dependency>
67-
<groupId>junit</groupId>
68-
<artifactId>junit</artifactId>
69-
<version>4.12</version>
70-
<scope>test</scope>
71-
</dependency>
72-
<dependency>
73-
<groupId>org.easymock</groupId>
74-
<artifactId>easymock</artifactId>
75-
<version>3.4</version>
76-
<scope>test</scope>
77-
</dependency>
78-
</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.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>
7988
</project>

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/internal/Breakpoint.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/Breakpoint.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@
99
* Microsoft Corporation - initial API and implementation
1010
*******************************************************************************/
1111

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

1414
import java.util.ArrayList;
1515
import java.util.HashMap;
1616
import java.util.List;
1717
import java.util.Objects;
1818
import java.util.concurrent.CompletableFuture;
1919

20-
import org.eclipse.jdt.ls.debug.IBreakpoint;
21-
import org.eclipse.jdt.ls.debug.IEventHub;
22-
2320
import com.sun.jdi.Location;
2421
import com.sun.jdi.ReferenceType;
2522
import com.sun.jdi.VirtualMachine;

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/DebugEvent.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/DebugEvent.java

+1-1
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;
12+
package com.microsoft.java.debug.core;
1313

1414
import com.sun.jdi.event.Event;
1515

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/DebugException.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/DebugException.java

+1-1
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;
12+
package com.microsoft.java.debug.core;
1313

1414
public class DebugException extends Exception {
1515
private static final long serialVersionUID = 1L;

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/internal/DebugSession.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/DebugSession.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,11 @@
99
* Microsoft Corporation - initial API and implementation
1010
*******************************************************************************/
1111

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

1414
import java.util.ArrayList;
1515
import java.util.List;
1616

17-
import org.eclipse.jdt.ls.debug.DebugUtility;
18-
import org.eclipse.jdt.ls.debug.IBreakpoint;
19-
import org.eclipse.jdt.ls.debug.IDebugSession;
20-
import org.eclipse.jdt.ls.debug.IEventHub;
21-
2217
import com.sun.jdi.ThreadReference;
2318
import com.sun.jdi.VirtualMachine;
2419
import com.sun.jdi.request.EventRequest;

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/DebugUtility.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/DebugUtility.java

+1-2
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;
12+
package com.microsoft.java.debug.core;
1313

1414
import java.io.File;
1515
import java.io.IOException;
@@ -19,7 +19,6 @@
1919
import java.util.concurrent.CompletableFuture;
2020

2121
import org.apache.commons.lang3.StringUtils;
22-
import org.eclipse.jdt.ls.debug.internal.DebugSession;
2322

2423
import com.sun.jdi.Location;
2524
import com.sun.jdi.ThreadReference;

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/internal/EventHub.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/EventHub.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
* Microsoft Corporation - initial API and implementation
1010
*******************************************************************************/
1111

12-
package org.eclipse.jdt.ls.debug.internal;
13-
14-
import org.eclipse.jdt.ls.debug.DebugEvent;
15-
import org.eclipse.jdt.ls.debug.IEventHub;
12+
package com.microsoft.java.debug.core;
1613

1714
import com.sun.jdi.VMDisconnectedException;
1815
import com.sun.jdi.VirtualMachine;

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/IBreakpoint.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/IBreakpoint.java

+1-1
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;
12+
package com.microsoft.java.debug.core;
1313

1414
import java.util.concurrent.CompletableFuture;
1515

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/IDebugResource.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/IDebugResource.java

+1-1
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;
12+
package com.microsoft.java.debug.core;
1313

1414
import java.util.List;
1515

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/IDebugSession.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/IDebugSession.java

+1-1
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;
12+
package com.microsoft.java.debug.core;
1313

1414
import java.util.List;
1515

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/IEventHub.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/IEventHub.java

+1-1
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;
12+
package com.microsoft.java.debug.core;
1313

1414
import com.sun.jdi.VirtualMachine;
1515

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/internal/Logger.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/Logger.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
* Microsoft Corporation - initial API and implementation
1010
*******************************************************************************/
1111

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

14-
import org.eclipse.jdt.ls.debug.internal.JavaDebuggerServerPlugin;
1514

1615
public class Logger {
1716
/**
@@ -20,15 +19,16 @@ public class Logger {
2019
* message to log
2120
*/
2221
public static void logInfo(String message) {
23-
JavaDebuggerServerPlugin.logInfo(message);
22+
System.out.println(message);
2423
}
2524

2625
public static void logException(String message, Exception e) {
27-
JavaDebuggerServerPlugin.logException(message, e);
26+
System.err.println(message);
27+
e.printStackTrace();
2828
}
2929

3030
public static void logError(String error) {
31-
JavaDebuggerServerPlugin.logError(error);
31+
System.err.println(error);
3232
}
3333

3434
}

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/adapter/AdapterUtils.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/AdapterUtils.java

+2-2
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;
12+
package com.microsoft.java.debug.core.adapter;
1313

1414
import java.net.URI;
1515
import java.net.URISyntaxException;
@@ -21,7 +21,7 @@
2121
import java.util.regex.Matcher;
2222
import java.util.regex.Pattern;
2323

24-
import org.eclipse.jdt.ls.debug.adapter.Messages.Response;
24+
import com.microsoft.java.debug.core.adapter.Messages.Response;
2525

2626
public class AdapterUtils {
2727
private static final String OS_NAME = System.getProperty("os.name", "").toLowerCase();

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/adapter/BreakpointManager.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/BreakpointManager.java

+3-3
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;
12+
package com.microsoft.java.debug.core.adapter;
1313

1414
import java.util.ArrayList;
1515
import java.util.Collections;
@@ -18,8 +18,8 @@
1818
import java.util.Map;
1919
import java.util.concurrent.atomic.AtomicInteger;
2020

21-
import org.eclipse.jdt.ls.debug.IBreakpoint;
22-
import org.eclipse.jdt.ls.debug.internal.Logger;
21+
import com.microsoft.java.debug.core.IBreakpoint;
22+
import com.microsoft.java.debug.core.Logger;
2323

2424
public class BreakpointManager {
2525
/**

com.microsoft.java.debug.core/src/main/java/org/eclipse/jdt/ls/debug/adapter/Constants.java renamed to com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/Constants.java

+1-1
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;
12+
package com.microsoft.java.debug.core.adapter;
1313

1414
public final class Constants {
1515
public static final String PROJECTNAME = "projectName";

0 commit comments

Comments
 (0)