Revision: 10536
Author: bobv%google....@gtempaccount.com
Date: Tue Aug 16 15:28:34 2011
Log: Edited wiki page RequestFactoryInterfaceValidation through web
user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=10536
Modified:
/wiki/RequestFactoryInterfaceValidation.wiki
=======================================
--- /wiki/RequestFactoryInterfaceValidation.wiki Tue Aug 16 13:53:38 2011
+++ /wiki/RequestFactoryInterfaceValidation.wiki Tue Aug 16 15:28:34 2011
@@ -52,3 +52,35 @@
}}}
An optional client-only mode will produce the metadata required by
`RequestFactorySource` clients using only the shared interfaces. This mode
is activated by adding a `-client` flag before the output location.
+
+== maven builds ==
+
+The following recipe can be used to run the ValidationTool as a
post-compilation step.
+
+{{{
+ <!-- Run the RequestFactory ValidationTool -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2</version>
+ <executions>
+ <execution>
+ <phase>process-classes</phase>
+ <configuration>
+ <id>VerifyRequestFactoryInterfaces</id>
+ <executable>java</executable>
+ <arguments>
+ <argument>-cp</argument>
+ <classpath />
+
<argument>com.google.web.bindery.requestfactory.apt.ValidationTool</argument>
+ <argument>${project.build.outputDirectory}</argument>
+
<argument>com.google.gwt.sample.mobilewebapp.shared.MobileWebAppRequestFactory</argument>
+ </arguments>
+ </configuration>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+}}}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors