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
Closed

GWT Super DevMode from the command line #6582

wants to merge 11 commits into from

Conversation

azatsarynnyy
Copy link
Member

@azatsarynnyy azatsarynnyy commented Oct 5, 2017

CQ https://dev.eclipse.org/ipzilla/show_bug.cgi?id=14390

What does this PR do?

Introduces a way of launching GWT's CodeServer (Super DevMode) for Che sources with a command line and not depend on GWT plugin provided by the concrete IDE: GWT Eclipse Plugin, GWT Plugin for IntelliJ IDEA Ultimate Edition etc.

How does it work?

In order to launch GWT Super DevMode for the Che sources the following command is proposed to use:
mvn clean gwt:codeserver -pl :assembly-ide-war -am -Psdm
There're three main parts:

  • The main command, mvn gwt:codeserver, relies on the aggregator goal codeserver of the net.ltgt.gwt.maven:gwt-maven-plugin. This goal runs GWT's CodeServer with the necessary parameters and the correct classpath.
  • It's recommended to use parameters -pl :assembly-ide-war -am in order the speed-up launching of the GWT's CodeServer by skipping the most of the maven modules which don't contain the client code.
  • clean cycle and sdm maven profile are mandatory for now but they'll become unnecessary after complete migration to the new maven plugin. Since we still use both the legacy org.codehouse.mojo:gwt-maven-plugin and the new net.ltgt.gwt.maven:gwt-maven-plugin all settings related to the new plugin have been placed within the separate maven profile sdm in order to avoid some configuration troubles. It's planned to remove this profile after complete migration to the new maven plugin.

So now there're several options available for launching GWT Super DevMode with the proposed command line.

Launch GWT Super DevMode (inside a container) working on the Che sources in Che IDE

Caveat: GWT CodeServer works really slow inside a Docker container.

  • Import Che project's sources into your workspace
  • Create a command GWT SDM for Che within the Run goal
  • Make sure that che project is selected in the Project Explorer
  • Run the command created in the previous step
    image

Launch GWT Super DevMode on the local machine (works with any IDE)

  • Go to the Che project's sources root folder. In case of developing in Che IDE go to the host folder where :/data volume is mounted, then go to your workspace's folder within instance/data/workspaces/ and there you should find che folder contains your Che's project sources. E.g., cd /home/user/che/data/instance/data/workspaces/wksp-2hpp/che.
  • Launch GWT CodeServer with a recommended command: mvn clean gwt:codeserver -pl :assembly-ide-war -am -Psdm

Launch GWT Super DevMode in IDEA (including IDEA CE w/o GWT plugin provided)

What issues does this PR fix or reference?

#2595

Release Notes

Docs PR

@benoitf benoitf added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/bug Outline of a bug - must adhere to the bug report template. labels Oct 5, 2017
@codenvy-ci
Copy link

Build # 4002 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/4002/ to view the results.

@codenvy-ci
Copy link

@azatsarynnyy azatsarynnyy removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Oct 10, 2017
@azatsarynnyy
Copy link
Member Author

will be provided as part of #6602

@benoitf benoitf added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Oct 10, 2017
@azatsarynnyy azatsarynnyy changed the title [WIP] GWT Super DevMode from the command line GWT Super DevMode from the command line Oct 11, 2017
@azatsarynnyy azatsarynnyy deleted the sdm4che branch October 19, 2017 10:26
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants