Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GWT Super DevMode from the command line #6582

Closed
wants to merge 11 commits into from
168 changes: 168 additions & 0 deletions assembly/assembly-ide-war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -449,4 +449,172 @@
</plugin>
</plugins>
</build>
<profiles>
<!-- Profile for launching GTW Super DevMode -->
<profile>
<id>sdm</id>
<!-- CodeServer will watch changes in projects which added as source dependencies -->
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.che.core</groupId>
<artifactId>che-core-ide-api</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.core</groupId>
<artifactId>che-core-ide-app</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-composer-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-cpp-lang-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-csharp-lang-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-debugger-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-gdb-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-git-ext-git</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-github-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-gwt-ext-gwt</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-help-ext-client</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-java-debugger-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-java-ext-lang-client</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-java-plain-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-keybinding-eclipse-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-languageserver-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-maven-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-nodejs-debugger-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-nodejs-lang-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-orion-compare</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-php-lang-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-pullrequest-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-python-lang-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-ssh-key-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-svn-ext-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-testing-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-testing-junit-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-testing-phpunit-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-testing-testng-ide</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-web-ext-web</artifactId>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-plugin-zend-debugger-ide</artifactId>
<classifier>sources</classifier>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
package org.eclipse.che.ide.ext.plugins.client;

import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.TextResource;
import org.vectomatic.dom.svg.ui.SVGResource;

/**
Expand All @@ -23,7 +22,4 @@ public interface PluginsResources extends ClientBundle {

@Source("images/gwt-che-command-type.svg")
SVGResource gwtCheCommandType();

@Source("cheClassPath.txt")
TextResource cheClassPath();
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,6 @@ void setClassPath(String classPath) {
}

String toCommandLine() {
final StringBuilder cmd =
new StringBuilder(
COMMAND_TEMPLATE
.replace("$GWT_MODULE", gwtModule.trim())
.replace("$CHE_CLASSPATH", '"' + classPath + '"'));
if (!codeServerAddress.trim().isEmpty()) {
cmd.append(" -bindAddress ").append(codeServerAddress.trim());
}

return cmd.toString();
return COMMAND_TEMPLATE;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,15 @@ public class GwtCheCommandType implements CommandType {

public static final String CODE_SERVER_FQN = "com.google.gwt.dev.codeserver.CodeServer";
public static final String COMMAND_TEMPLATE =
"java -classpath $CHE_CLASSPATH "
+ CODE_SERVER_FQN
+ " $GWT_MODULE -noincremental -noprecompile";
"mvn -Psdm -pl :assembly-ide-war -am clean gwt:codeserver";

private static final String ID = "gwt_sdm_che";
private static final String IDE_GWT_MODULE = "org.eclipse.che.ide.IDE";

private final PluginsResources resources;

private final List<CommandPage> pages;

@Inject
public GwtCheCommandType(
PluginsResources resources, GwtCheCommandPagePresenter page, IconRegistry iconRegistry) {
this.resources = resources;
pages = new LinkedList<>();
pages.add(page);

Expand Down Expand Up @@ -73,10 +67,7 @@ public List<CommandPage> getPages() {

@Override
public String getCommandLineTemplate() {
return COMMAND_TEMPLATE
.replace("$GWT_MODULE", IDE_GWT_MODULE)
.replace("$CHE_CLASSPATH", '"' + resources.cheClassPath().getText() + '"')
+ " -bindAddress 0.0.0.0";
return COMMAND_TEMPLATE;
}

@Override
Expand Down
Loading