Skip to content

Commit

Permalink
Switched to using profile for widgetset compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrez committed Apr 28, 2011
1 parent f760a21 commit 461371b
Show file tree
Hide file tree
Showing 17 changed files with 14,717 additions and 65 deletions.
108 changes: 45 additions & 63 deletions pom.xml
Expand Up @@ -23,44 +23,6 @@
</configuration>
</plugin>

<!-- Compile custom GWT components or widget dependencies with the GWT compiler -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.1.0-1</version>
<configuration>
<webappDirectory>${project.build.directory}/${project.build.finalName}/VAADIN/widgetsets</webappDirectory>
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
<runTarget>vaadin-widget</runTarget>
<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
<noServer>true</noServer>
<port>8080</port>
<soyc>false</soyc>
</configuration>
<executions>
<execution>
<goals>
<goal>resources</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<configuration>
</configuration>
<goals>
<goal>update-widgetset</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- A simple Jetty test server at http://localhost:8080/vaadin-widget can be launched with the Maven goal jetty:run
and stopped with jetty:stop -->
<plugin>
Expand Down Expand Up @@ -103,31 +65,51 @@
</repository>
</repositories>

<!--
<pluginRepositories>
<pluginRepository>
<id>codehaus-snapshots</id>
<url>http://nexus.codehaus.org/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>vaadin-snapshots</id>
<url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
-->

<profiles>
<profile>
<id>compile-widgetset</id>
<build>
<plugins>
<!-- Compile custom GWT components or widget dependencies with the GWT
compiler -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.1.0-1</version>
<configuration>
<webappDirectory>src/main/webapp/VAADIN/widgetsets</webappDirectory>
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
<runTarget>vaadin-mvn-addon</runTarget>
<soyc>false</soyc>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<configuration>
</configuration>
<goals>
<goal>update-widgetset</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>


<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/jorambarrez/MyVaadinApplication.java
Expand Up @@ -32,7 +32,7 @@ public void init() {
window.addComponent(countButton);
countButton.addListener(new ClickListener() {
public void buttonClick(ClickEvent event) {
refresher.setRefreshInterval(2000L);
refresher.setRefreshInterval(500L);
Thread thread = new Thread(new PingPongRunnable());
thread.start();
}
Expand All @@ -52,7 +52,7 @@ public void run() {
}

try {
Thread.sleep(500L);
Thread.sleep(2000L);
} catch (InterruptedException e) {
e.printStackTrace();
}
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 461371b

Please sign in to comment.