diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-13 19:13:16 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-13 19:15:06 +0100 |
commit | dff2f68c8d045037248e4924c48b100d2d5d05d8 (patch) | |
tree | 82f979adf05acc23826c805c43d4ff015a13869a /plugins/sonar-core-gwt | |
parent | c34c1bc92635b3f4846a8aae267be8094be80b8c (diff) | |
download | sonarqube-dff2f68c8d045037248e4924c48b100d2d5d05d8.tar.gz sonarqube-dff2f68c8d045037248e4924c48b100d2d5d05d8.zip |
optimizing GWT compilation to speed up build in dev environments
Diffstat (limited to 'plugins/sonar-core-gwt')
9 files changed, 130 insertions, 21 deletions
diff --git a/plugins/sonar-core-gwt/pom.xml b/plugins/sonar-core-gwt/pom.xml index ea1b2ca3c38..adae8808add 100644 --- a/plugins/sonar-core-gwt/pom.xml +++ b/plugins/sonar-core-gwt/pom.xml @@ -52,36 +52,24 @@ <plugins> <plugin> - <groupId>com.atlassian.maven.plugins</groupId> - <artifactId>maven-clover2-plugin</artifactId> - <configuration> - <excludes> - <!-- GWT classes --> - <exclude>**/client/**/*.java</exclude> - </excludes> - </configuration> - </plugin> - <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <executions> <execution> <configuration> <modules> - <module>org.sonar.plugins.core.ui.pageselector.PageSelector</module> - <module>org.sonar.plugins.core.clouds.GwtClouds</module> - <module>org.sonar.plugins.core.violationsviewer.ViolationsViewer</module> - <module>org.sonar.plugins.core.coverageviewer.CoverageViewer</module> - <module>org.sonar.plugins.core.defaultsourceviewer.GwtDefaultSourceViewer</module> - <module>org.sonar.plugins.core.duplicationsviewer.DuplicationsViewer</module> - <module>org.sonar.plugins.core.testdetailsviewer.TestsViewer</module> - <module>org.sonar.plugins.core.hotspots.GwtHotspots</module> + <module>org.sonar.plugins.core.ui.pageselector.PageSelector${gwt.permutationSuffix}</module> + <module>org.sonar.plugins.core.clouds.GwtClouds${gwt.permutationSuffix}</module> + <module>org.sonar.plugins.core.violationsviewer.ViolationsViewer${gwt.permutationSuffix}</module> + <module>org.sonar.plugins.core.coverageviewer.CoverageViewer${gwt.permutationSuffix}</module> + <module>org.sonar.plugins.core.defaultsourceviewer.GwtDefaultSourceViewer${gwt.permutationSuffix}</module> + <module>org.sonar.plugins.core.duplicationsviewer.DuplicationsViewer${gwt.permutationSuffix}</module> + <module>org.sonar.plugins.core.testdetailsviewer.TestsViewer${gwt.permutationSuffix}</module> + <module>org.sonar.plugins.core.hotspots.GwtHotspots${gwt.permutationSuffix}</module> </modules> <skip>${skipGwt}</skip> <webappDirectory>${project.build.directory}/classes</webappDirectory> - - <!-- do not break on two lines --> - <extraJvmArgs>-Xmx512m -Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory</extraJvmArgs> + <extraJvmArgs>${gwt.extraJvmArgs}</extraJvmArgs> </configuration> <goals> <goal>compile</goal> @@ -91,4 +79,19 @@ </plugin> </plugins> </build> + + <profiles> + <profile> + <id>dev</id> + <activation> + <property> + <name>dev</name> + </property> + </activation> + <properties> + <gwt.permutationSuffix>Dev</gwt.permutationSuffix> + <gwt.extraJvmArgs>-Xmx512m -Xss1024k -Dgwt.draftCompile=true</gwt.extraJvmArgs> + </properties> + </profile> + </profiles> </project>
\ No newline at end of file diff --git a/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/clouds/GwtCloudsDev.gwt.xml b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/clouds/GwtCloudsDev.gwt.xml new file mode 100644 index 00000000000..a9c37479fcc --- /dev/null +++ b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/clouds/GwtCloudsDev.gwt.xml @@ -0,0 +1,13 @@ +<module rename-to="org.sonar.plugins.core.clouds.GwtClouds"> + <inherits name="com.google.gwt.user.User"/> + <inherits name="com.google.gwt.json.JSON"/> + <inherits name="com.google.gwt.http.HTTP"/> + <inherits name="org.sonar.api.web.gwt.Sonar"/> + + <stylesheet src="clouds.css"/> + + <entry-point class="org.sonar.plugins.core.clouds.client.GwtClouds"/> + + <!-- optimization of dev environments --> + <set-property name="user.agent" value="gecko1_8" /> +</module> diff --git a/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/coverageviewer/CoverageViewerDev.gwt.xml b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/coverageviewer/CoverageViewerDev.gwt.xml new file mode 100644 index 00000000000..0ab28e22798 --- /dev/null +++ b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/coverageviewer/CoverageViewerDev.gwt.xml @@ -0,0 +1,12 @@ +<module rename-to="org.sonar.plugins.core.coverageviewer.CoverageViewer"> + <inherits name="com.google.gwt.user.User"/> + <inherits name="com.google.gwt.json.JSON"/> + <inherits name="com.google.gwt.http.HTTP"/> + <inherits name="org.sonar.Sonar"/> + <inherits name="com.google.gwt.gen2.table.Table"/> + + <entry-point class="org.sonar.plugins.core.coverageviewer.client.CoverageViewer"/> + + <!-- optimization of dev environments --> + <set-property name="user.agent" value="gecko1_8" /> +</module> diff --git a/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/defaultsourceviewer/GwtDefaultSourceViewerDev.gwt.xml b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/defaultsourceviewer/GwtDefaultSourceViewerDev.gwt.xml new file mode 100644 index 00000000000..eb23d0f5df8 --- /dev/null +++ b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/defaultsourceviewer/GwtDefaultSourceViewerDev.gwt.xml @@ -0,0 +1,12 @@ +<module rename-to="org.sonar.plugins.core.defaultsourceviewer.GwtDefaultSourceViewer"> + <inherits name="com.google.gwt.user.User"/> + <inherits name="com.google.gwt.json.JSON"/> + <inherits name="com.google.gwt.http.HTTP"/> + <inherits name="org.sonar.Sonar"/> + <inherits name="com.google.gwt.gen2.table.Table"/> + + <entry-point class="org.sonar.plugins.core.defaultsourceviewer.client.GwtDefaultSourceViewer"/> + + <!-- optimization of dev environments --> + <set-property name="user.agent" value="gecko1_8" /> +</module> diff --git a/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/duplicationsviewer/DuplicationsViewerDev.gwt.xml b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/duplicationsviewer/DuplicationsViewerDev.gwt.xml new file mode 100644 index 00000000000..a4d082aca8f --- /dev/null +++ b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/duplicationsviewer/DuplicationsViewerDev.gwt.xml @@ -0,0 +1,15 @@ +<module rename-to="org.sonar.plugins.core.duplicationsviewer.DuplicationsViewer"> + <inherits name="com.google.gwt.xml.XML"/> + <inherits name="com.google.gwt.user.User"/> + <inherits name="com.google.gwt.json.JSON"/> + <inherits name="com.google.gwt.http.HTTP"/> + <inherits name="org.sonar.Sonar"/> + <inherits name="com.google.gwt.gen2.table.Table"/> + + <stylesheet src="DuplicationsViewer.css"/> + + <entry-point class="org.sonar.plugins.core.duplicationsviewer.client.DuplicationsViewer"/> + + <!-- optimization of dev environments --> + <set-property name="user.agent" value="gecko1_8" /> +</module> diff --git a/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/hotspots/GwtHotspotsDev.gwt.xml b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/hotspots/GwtHotspotsDev.gwt.xml new file mode 100644 index 00000000000..de57eb5f22f --- /dev/null +++ b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/hotspots/GwtHotspotsDev.gwt.xml @@ -0,0 +1,12 @@ +<module rename-to="org.sonar.plugins.core.hotspots.GwtHotspots"> + <inherits name="com.google.gwt.user.User"/> + <inherits name="com.google.gwt.json.JSON"/> + <inherits name="com.google.gwt.http.HTTP"/> + <inherits name="org.sonar.Sonar"/> + <inherits name="com.google.gwt.i18n.I18N"/> + <stylesheet src="hotspots.css"/> + <entry-point class="org.sonar.plugins.core.hotspots.client.GwtHotspots"/> + + <!-- optimization of dev environments --> + <set-property name="user.agent" value="gecko1_8" /> +</module>
\ No newline at end of file diff --git a/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/testdetailsviewer/TestsViewerDev.gwt.xml b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/testdetailsviewer/TestsViewerDev.gwt.xml new file mode 100644 index 00000000000..c44229ca597 --- /dev/null +++ b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/testdetailsviewer/TestsViewerDev.gwt.xml @@ -0,0 +1,15 @@ +<module rename-to="org.sonar.plugins.core.testdetailsviewer.TestsViewer"> + <inherits name="com.google.gwt.xml.XML"/> + <inherits name="com.google.gwt.user.User"/> + <inherits name="com.google.gwt.json.JSON"/> + <inherits name="com.google.gwt.http.HTTP"/> + <inherits name="org.sonar.Sonar"/> + <inherits name="com.google.gwt.gen2.table.Table"/> + + <stylesheet src="TestsViewer.css"/> + + <entry-point class="org.sonar.plugins.core.testdetailsviewer.client.TestsViewer"/> + + <!-- optimization of dev environments --> + <set-property name="user.agent" value="gecko1_8" /> +</module>
\ No newline at end of file diff --git a/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/ui/pageselector/PageSelectorDev.gwt.xml b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/ui/pageselector/PageSelectorDev.gwt.xml new file mode 100644 index 00000000000..b1c8bc295f8 --- /dev/null +++ b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/ui/pageselector/PageSelectorDev.gwt.xml @@ -0,0 +1,14 @@ +<module rename-to="org.sonar.plugins.core.ui.pageselector.PageSelector"> + <inherits name="com.google.gwt.user.User"/> + <inherits name="com.google.gwt.json.JSON"/> + <inherits name="com.google.gwt.http.HTTP"/> + <inherits name="com.google.gwt.i18n.I18N"/> + <inherits name="org.sonar.api.web.gwt.Sonar"/> + <inherits name="org.sonar.Sonar"/> + <stylesheet src="pageselector.css" /> + + <entry-point class="org.sonar.plugins.core.ui.pageselector.client.PageSelector"/> + + <!-- optimization of dev environments --> + <set-property name="user.agent" value="gecko1_8" /> +</module>
\ No newline at end of file diff --git a/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/violationsviewer/ViolationsViewerDev.gwt.xml b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/violationsviewer/ViolationsViewerDev.gwt.xml new file mode 100644 index 00000000000..e628eae9114 --- /dev/null +++ b/plugins/sonar-core-gwt/src/main/resources/org/sonar/plugins/core/violationsviewer/ViolationsViewerDev.gwt.xml @@ -0,0 +1,13 @@ +<module rename-to="org.sonar.plugins.core.violationsviewer.ViolationsViewer"> + <inherits name="com.google.gwt.user.User"/> + <inherits name="com.google.gwt.json.JSON"/> + <inherits name="com.google.gwt.http.HTTP"/> + <inherits name="org.sonar.Sonar"/> + <inherits name="com.google.gwt.gen2.table.Table"/> + <inherits name="com.google.gwt.i18n.I18N"/> + + <entry-point class="org.sonar.plugins.core.violationsviewer.client.ViolationsViewer"/> + + <!-- optimization of dev environments --> + <set-property name="user.agent" value="gecko1_8" /> +</module> |