[jbpm-commits] JBoss JBPM SVN: r1754 - in jbossbpm/spec/trunk/modules: samples and 62 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Jul 29 15:26:17 EDT 2008
Author: thomas.diesler at jboss.com
Date: 2008-07-29 15:26:17 -0400 (Tue, 29 Jul 2008)
New Revision: 1754
Added:
jbossbpm/spec/trunk/modules/samples/
jbossbpm/spec/trunk/modules/samples/airticket/
jbossbpm/spec/trunk/modules/samples/airticket/README.txt
jbossbpm/spec/trunk/modules/samples/airticket/pom.xml
jbossbpm/spec/trunk/modules/samples/airticket/rpc/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/pom.xml
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteService.java
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteServiceAsync.java
jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/resources/
jbossbpm/spec/trunk/modules/samples/airticket/server/
jbossbpm/spec/trunk/modules/samples/airticket/server/pom.xml
jbossbpm/spec/trunk/modules/samples/airticket/server/src/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/HttpServlet.java
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/RandomCompliment.java
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/SampleRemoteServiceImpl.java
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/mavenplugin/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/mavenplugin/gwt/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/mavenplugin/gwt/sample/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/mavenplugin/gwt/sample/server/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/mavenplugin/gwt/sample/server/ApplicationServices.gwt.xml
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/WEB-INF/
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/WEB-INF/web.xml
jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/index.jsp
jbossbpm/spec/trunk/modules/samples/airticket/war/
jbossbpm/spec/trunk/modules/samples/airticket/war/pom.xml
jbossbpm/spec/trunk/modules/samples/airticket/war/src/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/Application.java
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleImageBundle.java
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/Application.gwt.xml
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/Application.html
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/images/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/images/gwt-logo.png
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/styles/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/styles/sample.css
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/WEB-INF/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/WEB-INF/web.xml
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/index.html
jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/apt/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/apt/index.apt
jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/site.xml
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/AStandardNonGwtTest.java
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/client/
jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/client/GwtTestExample.java
Modified:
jbossbpm/spec/trunk/modules/testsuite/pom.xml
Log:
Add google gwt sample
Added: jbossbpm/spec/trunk/modules/samples/airticket/README.txt
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/README.txt (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/README.txt 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,117 @@
+WELCOME to the maven-googlewebtoolkit2-sample Project
+=====================================================
+
+Also see GWT-Maven documentation:
+http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/index.html
+
+About:
+======
+This sample project has some specific goals:
+ + GWT-Maven 'Best Practice' & Usage
+ + Java5+ integration on the GWT server side & Java1.4 on the GWT client side using a multi-module maven project.
+ + GWT RPC structure via multi-module maven project - and inheriting a GWT module
+ + The features offered by GWT-Maven (like building a WAR, running the GWTShell, mergewebxml, and GWT testing)
+
+Overview:
+=========
+This sample package contains 4 different examples to show how GWT-Maven
+should be used with your project. If you intend to use multiple modules, you will want to build
+more than one of the examples. If you wish to set up a simpler single module (with just one pom.xml),
+then choose the example that is closest to the function of your project (likely the war project).
+
+This sample uses GWT-Maven with the "automatic" GWT setup mode enabled. This means
+that you do *not* have to download and install GWT yourself, the plugin will
+setup and extract GWT for you (when using this method).
+(You can optionally use manual method with a local GWT install, see documentation.)
+
+Which project to build:
+=======================
+ + parent (this is the root parent module of the project)
+ + rpc (this is the GWT RPC *INTERFACE* definition) Java 1.4
+ + server (this is the GWT RPC *IMPLEMENTATION*, it builds a GWT module that war inherits) Java 1.5+
+ + war (this is the GWT client code) Java 1.4
+
+Prerequisites:
+==============
+ + Maven2 - http://maven.apache.org
+ + Maven bin directory added to Path
+
+
+Running the parent example:
+===========================
+The parent example demonstrates a multi-module Maven build with a GWT project.
+When run it will build the rpc, server, and war sub projects.
+
+1. Use a command prompt to navigate into the maven-googlewebtoolkit2-sample directory.
+2. Execute "mvn clean install".
+3. Sub projects will have artifacts (see details for each below)
+
+
+Running the WAR example:
+========================
+The WAR project builds a Web-Application-Archive file for a GWT project.
+This war can then be deployed to a servlet container, and or you can run this
+project in the GWTShell using GWT-Maven.
+
+This project demonstrates not only the usefulness of GWT-Maven in terms of
+building WAR files, and running the shell, but also the "merge web xml" aspect.
+Notice that this project has a local web.xml source file, that is used to create
+a deployment time file that includes a standard servlet entry, as well as a GWT-RPC entry.
+(GWT-Maven allows you to use the embedded Tomcat server with source web.xml and other
+files [context.xml, if you use Tomcat outside of the shell], and it configures the
+embedded Tomcat for you.)
+
+This project also includes a testing sample using the GWT-Maven testGwt goal, and
+includes EMMA based code coverage and reports for GWTTestCase based tests.
+Code coverage with GWT is a bit tricky, but using the coverage patch JAR (as this project does)
+and generating ONLY a report (not instrumentation data itself, which GWT does for you when patched)
+along with AntRun to move things around, creates an automated build with testing and reports.
+(If you want to see the testing stuff, uncomment the "testGwt" goal in the POM, it is commented
+out by default to keep things faster and simpler.)
+(Note* - when running tests the Surefire plugin is NOT used for GwtTestCase based tests, rather
+a special testGwt goal is included with GWT-Maven for GwtTestCase based tests, thus TWO test phases
+will happen during "mvn test", one for Surefire standard tests, and one for testGwt GWT tests.)
+
+1. Build the server sub-project, using the instructions in "Running the parent example" above.
+2. Use a command prompt to navigate into the maven-googlewebtoolkit2-sample/war directory.
+3. Execute "mvn package".
+4. Your sample war will be created in the war/target directory.
+
+ OR you can run the GWTShell locally by executing "mvn gwt:gwt".
+
+ Optionally: Execute "mvn test site" (with testGwt goal enabled) to run test and get coverage.
+(See "target/site" directory for output.)
+
+
+Running the RPC example
+========================
+The RPC example is meant to show defining GWT-RPC interfaces.
+This project creates a JAR archive that includes source, so that it can be used by other
+GWT projects (the WAR example here uses it). This project does not need GWT-Maven
+(no shell to run, no GWT compiler, etc) - but does require GWT dependencies.
+
+1. Use a command prompt to navigate into the maven-googlewebtoolkit2-sample/rpc directory.
+2. Execute "mvn install".
+3. Your JAR library, with source included, will be in the rpc/target directory.
+
+
+Running the SERVER sample
+=========================
+The Server example demonstrates implementing GWT-RPC interfaces (the one from the RPC example),
+creating a GWT library module (that other projects can inherit), and including a standard
+HttpServlet example in the same project. This project creates
+a JAR archive that is built for the server side of a GWT project. This JAR can then
+be inherited using GWT inheritance to expose a GWT-RPC endpoint.
+(This demonstrates that it can make sense to break up your GWT projects into client and server portions,
+sometimes that helps with re-use [more than one client can import and use the RPC] and with team divisions.)
+
+1. Use a command prompt to navigate into the maven-googlewebtoolkit2-sample/server directory.
+2. Execute "mvn install".
+3. Your JAR library, with source included, will be in the server/target directory.
+
+
+More help:
+==========
+Docs: http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/index.html
+Also refer to the the gwt-maven message board: http://groups.google.com/group/gwt-maven
+
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/README.txt
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/pom.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/pom.xml (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/pom.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,84 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.totsp.gwt</groupId>
+ <artifactId>maven-googlewebtoolkit2-sample</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>maven-googlewebtoolkit2-sample</name>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>gwt-maven-plugins</id>
+ <url>
+ http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
+ </url>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <repositories>
+ <repository>
+ <id>java.net</id>
+ <url>http://download.java.net/maven/1</url>
+ <layout>legacy</layout>
+ </repository>
+ <repository>
+ <id>gwt-maven</id>
+ <url>
+ http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
+ </url>
+ </repository>
+ </repositories>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>com.totsp.gwt</groupId>
+ <artifactId>
+ maven-googlewebtoolkit2-sample-war
+ </artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.totsp.gwt</groupId>
+ <artifactId>
+ maven-googlewebtoolkit2-sample-rpc
+ </artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.totsp.gwt</groupId>
+ <artifactId>
+ maven-googlewebtoolkit2-sample-server
+ </artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>1.4.61</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>1.4.61</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <modules>
+ <module>rpc</module>
+ <module>server</module>
+ <module>war</module>
+ </modules>
+</project>
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Added: jbossbpm/spec/trunk/modules/samples/airticket/rpc/pom.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/rpc/pom.xml (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/rpc/pom.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,42 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>com.totsp.gwt</groupId>
+ <artifactId>maven-googlewebtoolkit2-sample</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>maven-googlewebtoolkit2-sample-rpc</artifactId>
+ <name>maven-googlewebtoolkit2-sample-rpc</name>
+
+ <build>
+ <!-- Include SOURCE in output artifact for GWT (GWT libraries must include source) -->
+ <resources>
+ <resource>
+ <directory>src/main/java</directory>
+ </resource>
+ </resources>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>gwt-maven</id>
+ <url>
+ http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
+ </url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/rpc/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteService.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteService.java (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteService.java 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,7 @@
+package com.totsp.mavenplugin.gwt.sample.client;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+
+public interface SampleRemoteService extends RemoteService {
+ public String doComplimentMe();
+}
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteServiceAsync.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteServiceAsync.java (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteServiceAsync.java 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,7 @@
+package com.totsp.mavenplugin.gwt.sample.client;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public interface SampleRemoteServiceAsync {
+ public void doComplimentMe(AsyncCallback callback);
+}
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/rpc/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleRemoteServiceAsync.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/server/pom.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/server/pom.xml (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/server/pom.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,53 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>com.totsp.gwt</groupId>
+ <artifactId>maven-googlewebtoolkit2-sample</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>maven-googlewebtoolkit2-sample-server</artifactId>
+ <name>maven-googlewebtoolkit2-sample-server</name>
+
+ <build>
+
+ <!-- Include SOURCE in output artifact for GWT (GWT libraries must include source) -->
+ <resources>
+ <resource>
+ <directory>src/main/java</directory>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ </resources>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ <finalName>maven-googlewebtoolkit2-sample-server</finalName>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.totsp.gwt</groupId>
+ <artifactId>maven-googlewebtoolkit2-sample-rpc</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/server/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/HttpServlet.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/HttpServlet.java (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/HttpServlet.java 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,31 @@
+package com.totsp.mavenplugin.gwt.sample.server;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * This is a sample of how to integrate a standard HTTPServlet inside a
+ * GWT-Maven project. More specifically, the mergexml functionality will use
+ * this HttpServlet & web.xml servlet mapping to integrate them into your
+ * GWT-Maven WebApp.
+ *
+ * @author andrew
+ *
+ */
+public class HttpServlet extends javax.servlet.http.HttpServlet {
+
+ protected void doGet(HttpServletRequest req, HttpServletResponse resp)
+ throws ServletException, IOException {
+ try {
+ // Call a random compliment, built with Java5 enums!
+ resp.getWriter().println(RandomCompliment.get());
+ } catch (Exception e) {
+ // completely unexpected exception!
+ e.printStackTrace(resp.getWriter());
+ }
+ }
+
+}
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/HttpServlet.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/RandomCompliment.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/RandomCompliment.java (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/RandomCompliment.java 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,41 @@
+package com.totsp.mavenplugin.gwt.sample.server;
+
+/*
+ * Java5+ Class, showing how to run Java5 server side code.. and Java1.4 GWT Client code simultaneously in GWT-Maven
+ */
+public class RandomCompliment {
+
+ /*
+ * Java5+ enum
+ */
+ private static enum compliment {
+ GREAT, EXCELLENT, FANTASTIC, AWESOME, L337
+ }
+
+ /**
+ * Just use the static method to get a random value
+ */
+ private RandomCompliment() {
+ };
+
+ /**
+ * Randomly select a compliment from the Java5+ enum
+ *
+ * @return a random compliment
+ */
+ public static String get() {
+ return "" + compliment.values()[(int) getRandomIndex()];
+ }
+
+ /**
+ * Generates a random index number, to select a random compliment
+ *
+ * @return random index number to the compliment.values array
+ */
+ private static int getRandomIndex() {
+ // (int) float : will round DOWN, so [ 0 <= RETURN_VAL <
+ // compliment.length ]
+ return (int) (Math.random() * ((double) compliment.values().length));
+ }
+
+}
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/RandomCompliment.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/SampleRemoteServiceImpl.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/SampleRemoteServiceImpl.java (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/SampleRemoteServiceImpl.java 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,12 @@
+package com.totsp.mavenplugin.gwt.sample.server;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+import com.totsp.mavenplugin.gwt.sample.client.SampleRemoteService;
+
+public class SampleRemoteServiceImpl extends RemoteServiceServlet implements
+ SampleRemoteService {
+
+ public String doComplimentMe() {
+ return RandomCompliment.get();
+ }
+}
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/com/totsp/mavenplugin/gwt/sample/server/SampleRemoteServiceImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/mavenplugin/gwt/sample/server/ApplicationServices.gwt.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/mavenplugin/gwt/sample/server/ApplicationServices.gwt.xml (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/mavenplugin/gwt/sample/server/ApplicationServices.gwt.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,8 @@
+<module>
+
+ <inherits name='com.google.gwt.user.User' />
+
+ <!-- Service Servlet Mapping -->
+ <servlet path='/sampleRemoteService' class='com.totsp.mavenplugin.gwt.sample.server.SampleRemoteServiceImpl' />
+
+</module>
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/resources/com/totsp/mavenplugin/gwt/sample/server/ApplicationServices.gwt.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/WEB-INF/web.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/WEB-INF/web.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,7 @@
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+ <display-name>GWT Maven Example</display-name>
+</web-app>
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/index.jsp
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/index.jsp (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/webapp/index.jsp 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,5 @@
+<html>
+<body>
+<h2>Hello World!</h2>
+</body>
+</html>
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/pom.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/pom.xml (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/pom.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <parent>
+ <artifactId>maven-googlewebtoolkit2-sample</artifactId>
+ <groupId>com.totsp.gwt</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>maven-googlewebtoolkit2-sample-war</artifactId>
+ <packaging>war</packaging>
+ <name>maven-googlewebtoolkit2-sample-war</name>
+ <build>
+ <plugins>
+ <!-- currently gwt supports java 1.4 (client) source -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.4</source>
+ <target>1.4</target>
+ </configuration>
+ </plugin>
+ <!-- All the fantastical settings that GWT needs -->
+ <plugin>
+ <groupId>com.totsp.gwt</groupId>
+ <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
+ <version>2.0-beta18</version>
+ <configuration>
+ <!-- gwtVersion can be specified, currently defaults to 1.4.61 if NOT specified -->
+ <!-- <gwtVersion>1.4.61</gwtVersion> -->
+ <logLevel>INFO</logLevel>
+ <compileTargets>
+ <value> com.totsp.mavenplugin.gwt.sample.Application</value>
+ </compileTargets>
+ <runTarget> com.totsp.mavenplugin.gwt.sample.Application/Application.html</runTarget>
+ <generatorRootClasses>
+ <value> com.totsp.mavenplugin.gwt.sample.Application</value>
+ </generatorRootClasses>
+ <overwriteGeneratedClasses> true</overwriteGeneratedClasses>
+ <!-- use style OBF for prod -->
+ <style>DETAILED</style>
+ <generateGettersAndSetters> true</generateGettersAndSetters>
+ <noServer>false</noServer>
+ <extraJvmArgs>-Dgwt.coverage.enable=true</extraJvmArgs>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <!-- autoconfig gwt (download and unzip GWT itself) -->
+ <!-- *note* you can also use manual config, if you already have GWT installed -->
+ <!-- see site docs for details - http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/setup.html -->
+ <goal>setup</goal>
+ <goal>extractGwt</goal>
+
+ <!-- actual work goals -->
+ <goal>mergewebxml</goal>
+ <goal>compile</goal>
+ <goal>gwt</goal>
+ <!-- uncomment testGwt to see the testing and code coverage magic -->
+ <!-- <goal>testGwt</goal> -->
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <webXml>target/web.xml</webXml>
+ </configuration>
+ </plugin>
+ <plugin>
+ <!-- use AntRun to do the Emma report (GWT emits coverage data files on it's own) -->
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <!--
+ <execution> <id>emma-coverage-report</id> <phase>pre-site</phase> <configuration> <tasks> <taskdef
+ resource="emma_ant.properties" classpathref="maven.plugin.classpath" /> <emma enabled="true"> <report>
+ <infileset dir="${project.build.directory}" includes="*.em, *.ec" /> <html
+ outfile="${project.build.directory}/coverage/coverage.html" depth="method"
+ columns="name,class,method,block,line" /> </report> </emma> <copy todir="${project.build.directory}/site/">
+ <fileset dir="${project.build.directory}/coverage" /> </copy> </tasks> </configuration> <goals>
+ <goal>run</goal> </goals> </execution>
+ -->
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>emma</groupId>
+ <artifactId>emma</artifactId>
+ <version>2.0.5312</version>
+ </dependency>
+ <dependency>
+ <groupId>emma</groupId>
+ <artifactId>emma_ant</artifactId>
+ <version>2.0.5312</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+ <!-- standard Maven reporting done here -->
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId> maven-project-info-reports-plugin</artifactId>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>dependencies</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <!--
+ the Maven Surefire Report plugin has a bug where it re-runs the tests, this is needed to avoid that -
+ http://jira.codehaus.org/browse/SUREFIRE-257
+ -->
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>report-only</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
+ <dependencies>
+ <dependency>
+ <groupId>com.totsp.gwt</groupId>
+ <artifactId> maven-googlewebtoolkit2-sample-server</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <!--
+ coverage patch (used to generate code coverage data for GwtTestCase based tests, when -Dgwt.coverage.enable=true
+ -->
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwtcoverage</artifactId>
+ <version>1.4.61</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>emma</groupId>
+ <artifactId>emma</artifactId>
+ <version>2.0.5312</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/war/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/Application.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/Application.java (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/Application.java 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,96 @@
+package com.totsp.mavenplugin.gwt.sample.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.gwt.user.client.rpc.ServiceDefTarget;
+import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.ui.ClickListener;
+import com.google.gwt.user.client.ui.Image;
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.Widget;
+import com.totsp.mavenplugin.gwt.sample.client.SampleRemoteService;
+import com.totsp.mavenplugin.gwt.sample.client.SampleRemoteServiceAsync;
+
+/**
+ * Entry point classes define <code>onModuleLoad()</code>.
+ */
+public class Application implements EntryPoint {
+
+ /**
+ * This is the entry point method.
+ */
+ public void onModuleLoad() {
+
+ //example of image bundle
+ final SampleImageBundle sampleImageBundle = (SampleImageBundle) GWT.create(SampleImageBundle.class);
+ final Image gwtLogoImage = sampleImageBundle.getGWTLogo().createImage();
+ gwtLogoImage.setTitle("This image was delivered via automatic resource inclusion and the ImageBundle feature");
+
+
+ final Button button = new Button("Run GWT Async RPC!");
+ //example of css inclusion and use
+ button.setStyleName("gwtMavenButton");
+
+ final Label label = new Label();
+
+ button.setTitle("This will execute the RPC call to the Java v1.5 GWT server");
+
+ button.addClickListener(new ClickListener() {
+ public void onClick(Widget sender) {
+
+ // (1) Create the client proxy. Note that although you are
+ // creating the
+ // service interface proper, you cast the result to the
+ // asynchronous
+ // version of
+ // the interface. The cast is always safe because the generated
+ // proxy
+ // implements the asynchronous interface automatically.
+ SampleRemoteServiceAsync sampleRemoteService = (SampleRemoteServiceAsync) GWT
+ .create(SampleRemoteService.class);
+
+ // (2) Specify the URL at which our service implementation is
+ // running.
+ // Note that the target URL must reside on the same domain and
+ // port from
+ // which the host page was served.
+ ServiceDefTarget endpoint = (ServiceDefTarget) sampleRemoteService;
+
+ String moduleRelativeURL = GWT.getModuleBaseURL()
+ + "sampleRemoteService";
+ endpoint.setServiceEntryPoint(moduleRelativeURL);
+
+ // (3) Create an asynchronous callback to handle the result.
+ AsyncCallback callback = new AsyncCallback() {
+ public void onSuccess(Object result) {
+ // do some UI stuff to show success
+ label.setText((String) result);
+ }
+
+ public void onFailure(Throwable caught) {
+ // do some UI stuff to show failure
+ label.setText("DAMMIT! This didnt work.");
+ }
+ };
+
+ // (4) Make the call. Control flow will continue immediately and
+ // later
+ // 'callback' will be invoked when the RPC completes.
+ sampleRemoteService.doComplimentMe(callback);
+
+ }
+ });
+
+ // Assume that the host HTML has elements defined whose
+ // IDs are "slot1", "slot2". In a real app, you probably would not want
+ // 4532
+ // to hard-code IDs. Instead, you could, for example, search for all
+ // elements with a particular CSS class and replace them with widgets.
+ //
+ RootPanel.get("gwtLogo").add(gwtLogoImage);
+ RootPanel.get("rpcButton").add(button);
+ RootPanel.get("rpcResponse").add(label);
+ }
+}
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/Application.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleImageBundle.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleImageBundle.java (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleImageBundle.java 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,17 @@
+package com.totsp.mavenplugin.gwt.sample.client;
+
+import com.google.gwt.user.client.ui.AbstractImagePrototype;
+import com.google.gwt.user.client.ui.ImageBundle;
+
+/**
+ * This is a sample how to use image bundles in your gwt-maven project.
+ * @author Andrew
+ */
+public interface SampleImageBundle extends ImageBundle {
+
+ /**
+ * @gwt.resource com/totsp/mavenplugin/gwt/sample/public/images/gwt-logo.png
+ */
+ public AbstractImagePrototype getGWTLogo();
+
+}
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/SampleImageBundle.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/Application.gwt.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/Application.gwt.xml (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/Application.gwt.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,15 @@
+<module>
+
+ <!-- Inherit the core Web Toolkit stuff. -->
+ <inherits name='com.google.gwt.user.User' />
+
+ <!-- Inherit the server project, which defines a service servlet endpoint -->
+ <inherits name='com.totsp.mavenplugin.gwt.sample.server.ApplicationServices' />
+
+ <!-- Specify the app entry point class. -->
+ <entry-point class='com.totsp.mavenplugin.gwt.sample.client.Application' />
+
+ <!-- Specify a css to load into your gwt application -->
+ <stylesheet src='styles/sample.css'/>
+
+</module>
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/Application.gwt.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/Application.html
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/Application.html (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/Application.html 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,79 @@
+<html>
+ <head>
+ <title>maven-googlewebtoolkit2-sample</title>
+ <style>
+ html,body{
+ font-family:arial,sans-serif;
+ height: 100%;
+ width: 800px;
+ align: center;
+ overflow: hidden;
+ }
+ </style>
+<!-- -->
+<!-- This script loads your compiled module. -->
+<!-- If you add any GWT meta tags, they must -->
+<!-- be added before this line. -->
+<!-- -->
+<script language='javascript'
+ src='com.totsp.mavenplugin.gwt.sample.Application.nocache.js'></script>
+</head>
+
+<!-- -->
+<!-- The body can have arbitrary html, or -->
+<!-- you can leave the body empty if you want -->
+<!-- to create a completely dynamic ui -->
+<!-- -->
+<body>
+
+<!-- OPTIONAL: include this if you want history support -->
+<iframe src="javascript:''" id="__gwt_historyFrame"
+ style="width: 0; height: 0; border: 0"></iframe>
+<table align=center>
+ <tr align="center">
+ <td>
+ <h1>Welcome to the maven-googlewebtoolkit2-sample</h1>
+ <table>
+ <tr>
+ <td>
+ <p>This is a <i>simple</i> gwt-maven example project, based on GWT v1.4.6x and maven v2.0.9+.</p>
+
+ Inside this example you will find a...
+ <ul>
+ <li>Maven Multi-Module project</li>
+ <li>GWT client that makes an RPC/AJAX call to a Java1.5 GWT server</li>
+ <li>Automatic Resource Inclusion (css)</li>
+ <li>Automatic Resource Inclusion (images via an ImageBundle)</li>
+ </ul>
+
+ Maven Modules Explained:
+ <ul>
+ <li>parent: this is the root/parent of the project</li>
+ <li>war: this is the client GWT code</li>
+ <li>rpc: this is an interface to a GWT server (not an
+ implementation)</li>
+ <li>server: is the implementation of the rpc interface (in
+ Java1.5+)</li>
+ <li>Look inside the pom.xml's for more comments and docs</li>
+ </ul>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr align="center">
+ <td>The Demo is Below<hr/></td>
+ </tr>
+ <!-- Below is where the gwt widgets are injected -->
+ <tr align="center">
+ <td id="gwtLogo"></td>
+ </tr>
+ <tr align="center">
+ <td id="rpcButton"></td>
+ </tr>
+ <tr align="center">
+ <td id="rpcResponse"></td>
+ </tr>
+</table>
+</body>
+</html>
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/images/gwt-logo.png
===================================================================
(Binary files differ)
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/images/gwt-logo.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/styles/sample.css
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/styles/sample.css (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/styles/sample.css 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,11 @@
+/**
+* Sample showing how to include a css in your gwt-maven project
+*/
+.gwtMavenButton {
+ border-color: rgb(255, 0, 0);
+ font-weight: normal;
+ font-style: normal;
+ text-align: center;
+ background-color: rgb(255, 0, 0);
+ color: rgb(255, 255, 255);
+}
\ No newline at end of file
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/WEB-INF/web.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/WEB-INF/web.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,19 @@
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+ <display-name>Archetype Created Web Application</display-name>
+ <servlet>
+ <servlet-name>HttpServlet</servlet-name>
+ <servlet-class>com.totsp.mavenplugin.gwt.sample.server.HttpServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>HttpServlet</servlet-name>
+ <url-pattern>/HttpServlet</url-pattern>
+ </servlet-mapping>
+
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+</web-app>
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/index.html
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/index.html (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/webapp/index.html 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,8 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+<!-- forward to the GWT Example Application -->
+<meta http-equiv="REFRESH"
+ content="0;url=com.totsp.mavenplugin.gwt.sample.Application/Application.html">
+</HEAD>
+</HTML>
\ No newline at end of file
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/apt/index.apt
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/apt/index.apt (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/apt/index.apt 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,8 @@
+GWT-Maven Sample
+
+ This is a sample project that uses GWT-Maven for, well, GWT and Maven integration.
+
+* Overview
+
+ * Lot's of stuff, see src README. http://gwt-maven.googlecode.com/svn/trunk/maven-googlewebtoolkit2-sample/README.txt
+
\ No newline at end of file
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/site.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/site.xml (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/site.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <body>
+ <menu name="Overview">
+ <item name="Introduction" href="index.html"/>
+ <item name="Coverage Report" href="coverage.html"/>
+ <item name="Dependency Report" href="dependencies.html"/>
+ <item name="Surefire Test Report" href="surefire-report.html"/>
+ </menu>
+ </body>
+</project>
\ No newline at end of file
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/war/src/site/site.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/AStandardNonGwtTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/AStandardNonGwtTest.java (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/AStandardNonGwtTest.java 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,16 @@
+package com.totsp.mavenplugin.gwt.sample;
+
+import junit.framework.TestCase;
+import junit.framework.Assert;
+
+public class AStandardNonGwtTest extends TestCase {
+
+ public AStandardNonGwtTest() {
+ }
+
+ public void testSomething() {
+ // our favorite kind of test, assert true, this always succeeds!
+ Assert.assertTrue(true);
+ }
+
+}
\ No newline at end of file
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/AStandardNonGwtTest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/client/GwtTestExample.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/client/GwtTestExample.java (rev 0)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/client/GwtTestExample.java 2008-07-29 19:26:17 UTC (rev 1754)
@@ -0,0 +1,29 @@
+package com.totsp.mavenplugin.gwt.sample.client;
+
+import junit.framework.Assert;
+
+import com.google.gwt.junit.client.GWTTestCase;
+
+public class GwtTestExample extends GWTTestCase
+{
+
+ public String getModuleName() {
+ return "com.totsp.mavenplugin.gwt.sample.Application";
+ }
+
+ public void setUp() throws Exception {
+ super.setUp();
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ public void testSomething()
+ {
+ // Not much to actually test in this sample app
+ // Ideally you would test your Controller here (NOT YOUR UI)
+ // (Make calls to RPC services, test client side model objects, test client side logic, etc)
+ Assert.assertTrue(true);
+ }
+}
\ No newline at end of file
Property changes on: jbossbpm/spec/trunk/modules/samples/airticket/war/src/test/java/com/totsp/mavenplugin/gwt/sample/client/GwtTestExample.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: jbossbpm/spec/trunk/modules/testsuite/pom.xml
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/pom.xml 2008-07-29 18:56:07 UTC (rev 1753)
+++ jbossbpm/spec/trunk/modules/testsuite/pom.xml 2008-07-29 19:26:17 UTC (rev 1754)
@@ -1,28 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
- <!--
- ======================================================================
- -->
- <!--
- -->
- <!--
- JBoss, the OpenSource J2EE webOS
- -->
- <!--
- -->
- <!--
- Distributable under LGPL license.
- -->
- <!--
- See terms of license at http://www.gnu.org.
- -->
- <!--
- -->
- <!--
- ======================================================================
- -->
- <!--
- $Id$
- -->
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at http://www.gnu.org. -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<!-- $Id$-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
More information about the jbpm-commits
mailing list