From: simonbrandhof Date: Thu, 13 Jan 2011 18:13:16 +0000 (+0100) Subject: optimizing GWT compilation to speed up build in dev environments X-Git-Tag: 2.6~160 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dff2f68c8d045037248e4924c48b100d2d5d05d8;p=sonarqube.git optimizing GWT compilation to speed up build in dev environments --- 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 @@ -51,16 +51,6 @@ - - com.atlassian.maven.plugins - maven-clover2-plugin - - - - **/client/**/*.java - - - org.codehaus.mojo gwt-maven-plugin @@ -68,20 +58,18 @@ - org.sonar.plugins.core.ui.pageselector.PageSelector - org.sonar.plugins.core.clouds.GwtClouds - org.sonar.plugins.core.violationsviewer.ViolationsViewer - org.sonar.plugins.core.coverageviewer.CoverageViewer - org.sonar.plugins.core.defaultsourceviewer.GwtDefaultSourceViewer - org.sonar.plugins.core.duplicationsviewer.DuplicationsViewer - org.sonar.plugins.core.testdetailsviewer.TestsViewer - org.sonar.plugins.core.hotspots.GwtHotspots + org.sonar.plugins.core.ui.pageselector.PageSelector${gwt.permutationSuffix} + org.sonar.plugins.core.clouds.GwtClouds${gwt.permutationSuffix} + org.sonar.plugins.core.violationsviewer.ViolationsViewer${gwt.permutationSuffix} + org.sonar.plugins.core.coverageviewer.CoverageViewer${gwt.permutationSuffix} + org.sonar.plugins.core.defaultsourceviewer.GwtDefaultSourceViewer${gwt.permutationSuffix} + org.sonar.plugins.core.duplicationsviewer.DuplicationsViewer${gwt.permutationSuffix} + org.sonar.plugins.core.testdetailsviewer.TestsViewer${gwt.permutationSuffix} + org.sonar.plugins.core.hotspots.GwtHotspots${gwt.permutationSuffix} ${skipGwt} ${project.build.directory}/classes - - - -Xmx512m -Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory + ${gwt.extraJvmArgs} compile @@ -91,4 +79,19 @@ + + + + dev + + + dev + + + + Dev + -Xmx512m -Xss1024k -Dgwt.draftCompile=true + + + \ 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 @@ + + + + + + + + + + + + + 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 @@ + + + + + + + + + + + + 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 @@ + + + + + + + + + + + + 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 @@ + + + + + + + + + + + + + + + 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 @@ + + + + + + + + + + + + \ 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 @@ + + + + + + + + + + + + + + + \ 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 @@ + + + + + + + + + + + + + + \ 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 @@ + + + + + + + + + + + + + diff --git a/plugins/sonar-design-plugin/pom.xml b/plugins/sonar-design-plugin/pom.xml index 8931965033e..d17bf9fc1ef 100644 --- a/plugins/sonar-design-plugin/pom.xml +++ b/plugins/sonar-design-plugin/pom.xml @@ -66,23 +66,23 @@ - + org.codehaus.mojo gwt-maven-plugin - org.sonar.plugins.design.ui.lcom4.Lcom4Tab - org.sonar.plugins.design.ui.page.DesignPage - org.sonar.plugins.design.ui.dependencies.DependenciesTab - org.sonar.plugins.design.ui.libraries.LibrariesPage + org.sonar.plugins.design.ui.lcom4.Lcom4Tab${gwt.permutationSuffix} + org.sonar.plugins.design.ui.page.DesignPage${gwt.permutationSuffix} + org.sonar.plugins.design.ui.dependencies.DependenciesTab${gwt.permutationSuffix} + org.sonar.plugins.design.ui.libraries.LibrariesPage${gwt.permutationSuffix} ${skipGwt} ${project.build.directory}/classes - -Xmx512m -Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory + ${extraJvmArgs} compile @@ -111,4 +111,19 @@ + + + + dev + + + dev + + + + Dev + -Xmx512m -Xss1024k -Dgwt.draftCompile=true + + + \ No newline at end of file diff --git a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/DependenciesTabDev.gwt.xml b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/DependenciesTabDev.gwt.xml new file mode 100644 index 00000000000..2d99592a078 --- /dev/null +++ b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/DependenciesTabDev.gwt.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/lcom4/Lcom4TabDev.gwt.xml b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/lcom4/Lcom4TabDev.gwt.xml new file mode 100644 index 00000000000..f89e89f04a0 --- /dev/null +++ b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/lcom4/Lcom4TabDev.gwt.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/libraries/LibrariesPageDev.gwt.xml b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/libraries/LibrariesPageDev.gwt.xml new file mode 100644 index 00000000000..5628099ea77 --- /dev/null +++ b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/libraries/LibrariesPageDev.gwt.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/page/DesignPageDev.gwt.xml b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/page/DesignPageDev.gwt.xml new file mode 100644 index 00000000000..0e137c320df --- /dev/null +++ b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/page/DesignPageDev.gwt.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index 74255853187..9f0b504a84d 100644 --- a/pom.xml +++ b/pom.xml @@ -89,6 +89,10 @@ UTF-8 2.0 1.5 + + + + -Xmx512m -Xss1024k