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

IDE agnostic way to launch GWT Super DevMode #7084

Merged
merged 4 commits into from
Oct 31, 2017
Merged

IDE agnostic way to launch GWT Super DevMode #7084

merged 4 commits into from
Oct 31, 2017

Conversation

azatsarynnyy
Copy link
Member

@azatsarynnyy azatsarynnyy commented Oct 30, 2017

Signed-off-by: Artem Zatsarynnyi [email protected]

What does this PR do?

Brings IDE agnostic way to launch GWT Super DevMode for the Che project's sources. It's required for developing Che in Che.
To achieve that the following steps have been done:

  • layout and pom files of all client (GWT) maven modules have been adapted to gwt-lib lifecycle which does all necessary work for packaging project as a GWT lib jar;
  • shared libs have been cleaned up from the GWT related stuff (included sources, gwt.xml files);
  • compiling IDE GWT application has been separated from packaging IDE web application in order to use all benefits of gwt-app lifecycle.

Launching GWT Super DevMode

The main command to launch Super DevMode is pretty simple - mvn gwt:codeserver. It has to be executed from the root folder of the Che project.
Note that there are a couple of additional options which are strongly encouraged to use to speed up the Super DevMode launching:

  • -pl :che-ide-gwt-app -am to process only those modules on which IDE app depends on and ignore modules which don't contain GWT sources (e. g. server modules);
  • -Pfast to skip additional code checks which are unnecessary during launching Super DevMode.

So the recommended command looks as follows:
mvn gwt:codeserver -pl :che-ide-gwt-app -am -Pfast

Developing Che in Che

There are two ways available to launch Super DevMode for developing Che in Che.

Launching GWT CodeServer on a local machine
  • 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 project's sources. E.g., cd /home/user/che/data/instance/data/workspaces/wksp-2hpp/che.
  • Launch GWT CodeServer with a recommended command: mvn gwt:codeserver -pl :che-ide-gwt-app -am -Pfast
Launching GWT CodeServer inside a machine (docker container) with Che project's sources

Create and run a command of type GWT SDM for Che within the Run goal.
For convenience, use toolbar Run button for launching Super DevMode
image
When CodeServer is launched go to the Servers tab to get the CodeServer URL
image

What issues does this PR fix or reference?

#6602

Release Notes

Docs PR

enabled launching Super DevMode as reactor goal gwt:codeserver;
enabled launching Super DevMode inside a dev-machine (for Che in Che development);
separate IDE GWT app from IDE WEB app.

Signed-off-by: Artem Zatsarynnyi <[email protected]>
@azatsarynnyy azatsarynnyy added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/che6 labels Oct 30, 2017
@azatsarynnyy azatsarynnyy added the kind/enhancement A feature request - must adhere to the feature request template. label Oct 30, 2017
azatsarynnyy and others added 3 commits October 30, 2017 15:58
Signed-off-by: Artem Zatsarynnyi <[email protected]>
…sembly-ide-war overlay

Signed-off-by: Artem Zatsarynnyi <[email protected]>
Signed-off-by: Artem Zatsarynnyi <[email protected]>
@azatsarynnyy azatsarynnyy changed the title [WIP] gwt-maven-plugin migration IDE agnostic way to launch GWT Super DevMode Oct 30, 2017
@azatsarynnyy azatsarynnyy merged commit f15fbf1 into che6 Oct 31, 2017
@azatsarynnyy azatsarynnyy deleted the sdm branch October 31, 2017 13:27
@azatsarynnyy azatsarynnyy added this to the 6.0.0-M1 milestone Oct 31, 2017
@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 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants