Tuesday, March 10, 2015

Re: gwt-maven-archetypes and passing codeserver arguments

thank you for the tip.

On Monday, March 9, 2015 at 11:40:49 PM UTC+1, Thomas Broyer wrote:


On Monday, March 9, 2015 at 6:44:34 PM UTC+1, Frank Taffelt wrote:
Hi,

i'm using the gwt-maven-archetypes from thomas and wondering how and where to specify some options for the codeserver  - say enable jsinterop.

what i tried was to add some configuration to the parent's POM:
<plugin>
 
<groupId>net.ltgt.gwt.maven</groupId>
 
<artifactId>gwt-maven-plugin</artifactId>
 
<version>1.0-beta-1</version>
 
<extensions>true</extensions>
 
<configuration>
   
<sourceLevel>1.7</sourceLevel>
   
<failOnError>true</failOnError>
     
<!-- added to enable JSINTEROP -->
   
<codeserverArgs>
       
<XjsInteropMode>-XjsInteropMode JS</XjsInteropMode>
     
</codeserverArgs>
 
</configuration>
</plugin>


Each arg must be given separately (and the convention is to use <codeserverArg> or just <arg>):

<codeserverArgs>
  <arg>-XjsInteropMode</arg>
  <arg>JS</arg>
</codeserverArgs>
 
(note: this is standard Maven configuration for a property of type Map<String,String>)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment