SDM: Fix launch configuration to find gerrit-plugin-gwtui module

This is needed to allow inspection of GWT plugin modules in SDM debug
session. Also document the needed step to extend launch configuration
with plugin GWT module name and source folder location.

Change-Id: I57bda915ba8fcd163a415e311021bf05cdd6c9e0
This commit is contained in:
David Ostrovsky 2015-06-24 08:33:44 +02:00 committed by David Pursehouse
parent a853df32ac
commit 94aab1bd2b
2 changed files with 21 additions and 1 deletions

View File

@ -79,6 +79,26 @@ as a bookmarklet).
recompiling.
* To reflect your changes in the debug session, click `Dev Mode On` then `Compile`.
=== Running GWT Debug Mode for Gerrit plugins
A Gerrit plugin can expose GWT module and its implementation can be inspected
in the SDM debug session.
`codeserver` needs two additional inputs to expose the plugin module in the SDM
debug session: the module name and the source folder location. For example the
module name and source folder of `cookbook-plugin` should be added in the local
copy of the `gerrit_gwt_debug` configuration:
----
com.googlesource.gerrit.plugins.cookbook.HelloForm \
-src ${resource_loc:/gerrit}/plugins/cookbook-plugin/src/main/java \
-- --console-log [...]
----
After doing that, both the Gerrit core and plugin GWT modules can be activated
during SDM (debug session)[http://imgur.com/HFXZ5No].
GERRIT
------
Part of link:index.html[Gerrit Code Review]

View File

@ -16,7 +16,7 @@
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gerrit.gwtdebug.GerritGwtDebugLauncher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-noprecompile -src ${resource_loc:/gerrit} -workDir ${resource_loc:/gerrit}/buck-out/gen/gerrit-gwtui com.google.gerrit.GerritGwtUI -- --console-log --show-stack-trace -d ${resource_loc:/gerrit}/../gerrit_testsite"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-noprecompile -src ${resource_loc:/gerrit} -workDir ${resource_loc:/gerrit}/buck-out/gen/gerrit-gwtui com.google.gerrit.GerritGwtUI -src ${resource_loc:/gerrit}/gerrit-plugin-gwtui/src/main/java -- --console-log --show-stack-trace -d ${resource_loc:/gerrit}/../gerrit_testsite"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="gerrit"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx1024M&#10;-XX:MaxPermSize=256M&#10;-Dgerrit.disable-gwtui-recompile=true"/>
</launchConfiguration>