Skip to content

Commit

Permalink
add initial debug plugin (eclipse-jdtls#1)
Browse files Browse the repository at this point in the history
* add initial debug plugin

* add debug project in language server product

* add copyright, remove startup class.
  • Loading branch information
andxu committed Jul 5, 2017
1 parent 014a8b4 commit 0b2a88a
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
**/node_modules/
.DS_Store
.idea
target/
bin/
**/lib/
13 changes: 13 additions & 0 deletions org.eclipse.jdt.ls.debug/META-INF/MANIFEST.MF
@@ -0,0 +1,13 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Java
Bundle-SymbolicName: org.eclipse.jdt.ls.debug;singleton:=true
Bundle-Version: 0.1.0.qualifier
Bundle-Activator: org.eclipse.jdt.ls.debug.internal.JavaDebuggerServerPlugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: org.osgi.framework;version="1.3.0"
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.12.0",
org.eclipse.debug.core;bundle-version="3.11.0",
org.eclipse.ui;bundle-version="3.109.0"
Export-Package: org.eclipse.jdt.ls.debug.internal;x-friends:="org.eclipse.jdt.ls.tests"
56 changes: 56 additions & 0 deletions org.eclipse.jdt.ls.debug/lifecycle-mapping-metadata.xml
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<!-- build-helper-maven-plugin mapping mostly copied from
https://github.com/mojohaus/build-helper-maven-plugin/blob/33355c039d3fc4aa4ca43a895834d5b4085baf5b/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml
-->
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<versionRange>[1.0, 3.0.0)</versionRange>
<goals>
<goal>add-resource</goal>
<goal>add-source</goal>
<goal>add-test-resource</goal>
<goal>add-test-source</goal>
<goal>bsh-property</goal>
<goal>cpu-count</goal>
<goal>local-ip</goal>
<goal>maven-version</goal>
<goal>parse-version</goal>
<goal>regex-properties</goal>
<goal>regex-property</goal>
<goal>released-version</goal>
<goal>reserve-network-port</goal>
<goal>timestamp-property</goal>
<goal>uptodate-properties</goal>
<goal>uptodate-property</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>true</runOnIncremental>
<runOnConfiguration>true</runOnConfiguration>
</execute>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<versionRange>[1.0, 3.0.0)</versionRange>
<goals>
<goal>attach-artifact</goal>
<goal>remove-project-artifact</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>false</runOnIncremental>
<runOnConfiguration>false</runOnConfiguration>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
7 changes: 7 additions & 0 deletions org.eclipse.jdt.ls.debug/plugin.xml
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.m2e.core.lifecycleMappingMetadataSource">
</extension>
</plugin>
28 changes: 28 additions & 0 deletions org.eclipse.jdt.ls.debug/pom.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.jdt.ls</groupId>
<artifactId>parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.jdt.ls.debug</artifactId>
<packaging>eclipse-plugin</packaging>
<name>${base.name} :: Debug</name>
<properties>
<lsp4j.version>0.2.0-SNAPSHOT</lsp4j.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<artifactItems>
</artifactItems>
</configuration>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,28 @@
/*******************************************************************************
* Copyright (c) 2017 Microsoft Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Microsoft Corporation - initial API and implementation
*******************************************************************************/

package org.eclipse.jdt.ls.debug.internal;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class JavaDebuggerServerPlugin implements BundleActivator {

@Override
public void start(BundleContext context) throws Exception {

}

@Override
public void stop(BundleContext context) throws Exception {

}
}
5 changes: 5 additions & 0 deletions org.eclipse.jdt.ls.product/languageServer.product
Expand Up @@ -3,6 +3,7 @@

<product name="Java Language Server" uid="languageServer.product" id="org.eclipse.jdt.ls.core.product" application="org.eclipse.jdt.ls.core.id1" version="1.0.0" useFeatures="false" includeLaunchers="true">


<configIni use="default">
</configIni>

Expand All @@ -17,9 +18,11 @@
</win>
</launcher>


<vm>
</vm>


<plugins>
<plugin id="com.ibm.icu.base"/>
<plugin id="javax.xml"/>
Expand Down Expand Up @@ -55,6 +58,7 @@
<plugin id="org.eclipse.jdt.launching"/>
<plugin id="org.eclipse.jdt.launching.macosx"/>
<plugin id="org.eclipse.jdt.ls.core"/>
<plugin id="org.eclipse.jdt.ls.debug"/>
<plugin id="org.eclipse.m2e.core"/>
<plugin id="org.eclipse.m2e.jdt"/>
<plugin id="org.eclipse.m2e.lifecyclemapping.defaults"/>
Expand All @@ -72,6 +76,7 @@
<plugin id="org.eclipse.jdt.core" autoStart="false" startLevel="0" />
<plugin id="org.eclipse.jdt.launching" autoStart="false" startLevel="0" />
<plugin id="org.eclipse.jdt.ls.core" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.jdt.ls.debug" autoStart="true" startLevel="0" />
</configurations>

<preferencesInfo>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Expand Up @@ -24,6 +24,7 @@
</properties>
<modules>
<module>org.eclipse.jdt.ls.target</module>
<module>org.eclipse.jdt.ls.debug</module>
<module>org.eclipse.jdt.ls.core</module>
<module>org.eclipse.jdt.ls.tests</module>
<module>org.eclipse.jdt.ls.product</module>
Expand Down

0 comments on commit 0b2a88a

Please sign in to comment.