aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-design-plugin
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-01-13 19:13:16 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-01-13 19:15:06 +0100
commitdff2f68c8d045037248e4924c48b100d2d5d05d8 (patch)
tree82f979adf05acc23826c805c43d4ff015a13869a /plugins/sonar-design-plugin
parentc34c1bc92635b3f4846a8aae267be8094be80b8c (diff)
downloadsonarqube-dff2f68c8d045037248e4924c48b100d2d5d05d8.tar.gz
sonarqube-dff2f68c8d045037248e4924c48b100d2d5d05d8.zip
optimizing GWT compilation to speed up build in dev environments
Diffstat (limited to 'plugins/sonar-design-plugin')
-rw-r--r--plugins/sonar-design-plugin/pom.xml27
-rw-r--r--plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/DependenciesTabDev.gwt.xml12
-rw-r--r--plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/lcom4/Lcom4TabDev.gwt.xml11
-rw-r--r--plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/libraries/LibrariesPageDev.gwt.xml11
-rw-r--r--plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/page/DesignPageDev.gwt.xml11
5 files changed, 66 insertions, 6 deletions
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 @@
</configuration>
</plugin>
- <plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<executions>
<execution>
<configuration>
<modules>
- <module>org.sonar.plugins.design.ui.lcom4.Lcom4Tab</module>
- <module>org.sonar.plugins.design.ui.page.DesignPage</module>
- <module>org.sonar.plugins.design.ui.dependencies.DependenciesTab</module>
- <module>org.sonar.plugins.design.ui.libraries.LibrariesPage</module>
+ <module>org.sonar.plugins.design.ui.lcom4.Lcom4Tab${gwt.permutationSuffix}</module>
+ <module>org.sonar.plugins.design.ui.page.DesignPage${gwt.permutationSuffix}</module>
+ <module>org.sonar.plugins.design.ui.dependencies.DependenciesTab${gwt.permutationSuffix}</module>
+ <module>org.sonar.plugins.design.ui.libraries.LibrariesPage${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>${extraJvmArgs}</extraJvmArgs>
</configuration>
<goals>
<goal>compile</goal>
@@ -111,4 +111,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-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 @@
+<module rename-to="org.sonar.plugins.design.ui.dependencies.DependenciesTab">
+ <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"/>
+
+ <stylesheet src='dependencies-tab.css'/>
+ <entry-point class="org.sonar.plugins.design.ui.dependencies.client.DependenciesTab"/>
+
+ <!-- optimization of dev environments -->
+ <set-property name="user.agent" value="gecko1_8" />
+</module>
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 @@
+<module rename-to="org.sonar.plugins.design.ui.lcom4.Lcom4Tab">
+ <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"/>
+ <stylesheet src="lcom4.css"/>
+ <entry-point class="org.sonar.plugins.design.ui.lcom4.client.Lcom4Tab"/>
+
+ <!-- optimization of dev environments -->
+ <set-property name="user.agent" value="gecko1_8" />
+</module>
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 @@
+<module rename-to="org.sonar.plugins.design.ui.libraries.LibrariesPage">
+ <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"/>
+ <stylesheet src="libraries.css"/>
+ <entry-point class="org.sonar.plugins.design.ui.libraries.client.LibrariesPage"/>
+
+ <!-- optimization of dev environments -->
+ <set-property name="user.agent" value="gecko1_8" />
+</module>
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 @@
+<module rename-to="org.sonar.plugins.design.ui.page.DesignPage">
+ <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"/>
+ <stylesheet src="design.css"/>
+ <entry-point class="org.sonar.plugins.design.ui.page.client.DesignPage"/>
+
+ <!-- optimization of dev environments -->
+ <set-property name="user.agent" value="gecko1_8" />
+</module>