-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathgwt-compile.sh
executable file
·23 lines (19 loc) · 1.44 KB
/
gwt-compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -ev
#mvn compile gwt:compile -Dgwt.module=com.goodow.realtime.channel.ChannelProd \
# -Dgwt.disableCastChecking=true -Dgwt.disableClassMetadata=true \
# -Dgwt.compiler.optimizationLevel=9 -Dgwt.compiler.enableClosureCompiler=true
# -Dgwt.draftCompile=true -Dgwt.style=DETAILED -Dgwt.compiler.compileReport=true
CLASSPATH=./target/classes:./src/main/java
CLASSPATH=$CLASSPATH:$HOME/.m2/repository/com/google/gwt/gwt-dev/2.7.0/gwt-dev-2.7.0.jar
CLASSPATH=$CLASSPATH:$HOME/.m2/repository/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar
CLASSPATH=$CLASSPATH:$HOME/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar
CLASSPATH=$CLASSPATH:$HOME/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar
CLASSPATH=$CLASSPATH:$HOME/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar
CLASSPATH=$CLASSPATH:$HOME/.m2/repository/com/goodow/realtime/realtime-json/0.5.5-SNAPSHOT/realtime-json-0.5.5-SNAPSHOT.jar
CLASSPATH=$CLASSPATH:$HOME/.m2/repository/com/goodow/realtime/realtime-json/0.5.5-SNAPSHOT/realtime-json-0.5.5-SNAPSHOT-sources.jar
java -cp $CLASSPATH \
com.google.gwt.dev.Compiler -war target/realtime-channel-0.5.5-SNAPSHOT \
-XnoclassMetadata -XnocheckCasts -XjsInteropMode JS -XclosureCompiler -optimize 9 \
com.goodow.realtime.channel.ChannelProd
cp target/realtime-channel-0.5.5-SNAPSHOT/channel/channel.nocache.js bower-realtime-channel/realtime-channel.js