-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgwt.xml
51 lines (50 loc) · 1.95 KB
/
gwt.xml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE project>
<project default="gwt-compile" name="GWT Compiler">
<property name="gwtversion" value="2.7.0" />
<mkdir dir="build/" />
<target name="download" depends="sdkExist" if="isAvailable">
<echo>SDK missing</echo>
<get description="get GWT-SDK" src="http://goo.gl/t7FQSn" dest="build/gwt.zip" />
<unzip src="build/gwt.zip" dest="build/" />
</target>
<target name="sdkExist" unless="isAvailable">
<echo>SDK exists</echo>
</target>
<target name="gwt-compile" depends="download" description="CrossCompile NetworkParser to Javascript with GWT">
<available file="build/gwt.zip" property="isAvailable" />
<record name="build/gwt-Compile.txt" action="start" append="false" />
<copy todir="build/gwtSource">
<fileset dir="src/main/java/">
<exclude name="**/javafx/**"/>
<exclude name="**/InstanceOf.java"/>
<exclude name="**/IdFilterElements.java"/>
</fileset>
</copy>
<unzip src="lib/java.beans.jar" dest="build/gwtSource">
<patternset>
<include name="**/*.java"/>
<include name="**/*.xml"/>
<exclude name="**/*.class"/>
</patternset>
</unzip>
<java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
<classpath>
<pathelement location="build/gwtSource"/>
<pathelement location="build/gwt-${gwtversion}/gwt-dev.jar" />
<pathelement location="build/gwt-${gwtversion}/gwt-user.jar" />
<pathelement location="build/gwt-${gwtversion}/validation-api-1.0.0.GA.jar" />
<pathelement location="build/gwt-${gwtversion}/validation-api-1.0.0.GA-sources.jar" />
</classpath>
<jvmarg value="-Xmx512M"/>
<arg value="de.uniks.networkparser"/>
<arg value="-war" />
<arg value="build/war" />
<arg value="-logLevel" />
<arg value="ALL" />
<arg value="-sourceLevel" />
<arg value="1.6" />
</java>
<record name="build/gwt-Compile.txt" action="stop" />
<delete dir="build/gwtSource"></delete>
</target>
</project>