-
Notifications
You must be signed in to change notification settings - Fork 2
/
Mavenfile
33 lines (31 loc) · 1.45 KB
/
Mavenfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#-*- mode: ruby -*-
GWT_VERSION = '2.4.0'
jar('de.mkristian.gwt:rails-gwt', '0.6.0').scope :provided
jar('org.fusesource.restygwt:restygwt', '1.2').scope :provided
jar('javax.ws.rs:jsr311-api', '1.1').scope :provided
jar('com.google.gwt:gwt-user', GWT_VERSION).scope :provided
jar('com.google.gwt.inject:gin', '1.5.0').scope :provided
jar('javax.validation:validation-api', '1.0.0.GA').scope :provided
jar('javax.validation:validation-api', '1.0.0.GA', 'sources').scope :provided
plugin('org.codehaus.mojo:gwt-maven-plugin', GWT_VERSION) do |gwt|
gwt.with({ :warSourceDirectory => "${basedir}/public",
:webXml => "${basedir}/public/WEB-INF/web.xml",
:webappDirectory => "${basedir}/public",
:hostedWebapp => "${basedir}/public",
:inplace => true,
:logLevel => "INFO",
:style => "DETAILED",
:treeLogger => true,
:extraJvmArgs => "-Xmx512m",
:runTarget => "<%= application_name %>.html",
:includes => "**/<%= application_name %>GWTTestSuite.java"
})
gwt.executions.goals << ["clean", "compile", "test"]
end
plugin(:rails3).in_phase("initialize").execute_goal(:pom).with :force => true
#-- Macs need the -d32 -XstartOnFirstThread jvm options -->
profile("mac") do |mac|
mac.activation.os.family "mac"
mac.plugin('org.codehaus.mojo:gwt-maven-plugin').with(:extraJvmArgs => "-d32 -XstartOnFirstThread -Xmx512m")
end
# vim: syntax=Ruby