-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
139 lines (128 loc) · 4.3 KB
/
build.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<project name="Java JSON Schema validation" default="default" basedir=".">
<description>Builds, tests, and runs Validate for JSON validation.</description>
<property name="fork" value="true"/>
<!--
<property name="examples" value="/x3d-code/www.web3d.org/x3d/content/examples"/>
<property name="examples" value="/x3d-code/www.web3d.org/x3d/content/examples/HumanoidAnimation"/>
-->
<property name="examples" value="examples"/>
<property name="classpath" value=".;../pythonSAI/X3DJSAIL.4.0.full.jar"/>
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="C:/apache-ant-1.10.12-bin/apache-ant-1.10.12/lib/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<target name="default" description="build and test" depends="compile,batch">
</target>
<target name="match" description="build and match" depends="compile">
<java classname="Match" classpath="." fork="${fork}">
<jvmarg value="-Xss1g"/>
</java>
</target>
<target name="jin" description="build and test" depends="compile">
<echo message="Scale Jin with classpath ${classpath}"/>
<java classname="Jin" classpath="${classpath}" fork="${fork}">
<jvmarg value="-Xss1g"/>
<jvmarg value="-Xmx4g"/>
<arg value="JinLOA4"/>
</java>
</target>
<target name="compile" description="build">
<echo message="Build modules:"/>
<echo message="Compile: with classpath ${classpath}"/>
<javac includes="RunSaxon.java,X3DRoots.java,Validate.java,ValidateXML.java,X3DJSONLD.java,JinLOA4.java,Jin.java,Match.java" srcdir="." destdir="." classpath="${classpath}" includeantruntime="false" fork="${fork}">
<compilerarg value="-proc:full"/>
<compilerarg value="-J-Xss1g"/>
<compilerarg value="-J-Xmx4g"/>
</javac>
</target>
<!--
<target name="run">
<foreach target="runone" param="theFile">
<path>
<fileset dir="${examples}" casesensitive="yes">
<include name="**/HelloWorldProgramOutput*.json"/>
</fileset>
</path>
</foreach>
</target>
<target name="runone">
<echo message="Validate ${theFile} with classpath ${classpath}"/>
<java classname="Validate" classpath="${classpath}" fork="${fork}">
<arg value="${theFile}"/>
</java>
</target>
-->
<target name="batch" depends="compile">
<echo message="Run batch:"/>
<apply executable="java">
<arg value="-cp"/>
<arg value="${classpath}"/>
<arg value="Validate"/>
<srcfile/>
<fileset dir="${examples}" casesensitive="yes">
<include name="**/*.x3dj"/>
<include name="**/*.json"/>
<include name="**/*.xml"/>
<exclude name="**/*.tidy.new.xml"/>
</fileset>
</apply>
</target>
<target name="batchx3d" depends="compile">
<echo message="Run batch:"/>
<apply executable="java">
<arg value="-cp"/>
<arg value="${classpath}"/>
<arg value="Validate"/>
<srcfile/>
<fileset dir="${examples}" casesensitive="yes">
<include name="**/*.x3d"/>
<exclude name="**/originals/*.x3d"/>
</fileset>
</apply>
</target>
<target name="batchxml" depends="compile">
<echo message="Run batch:"/>
<apply executable="java">
<arg value="-cp"/>
<arg value="${classpath}"/>
<arg value="Validate"/>
<srcfile/>
<fileset dir="${examples}" casesensitive="yes">
<include name="**/*.xml"/>
<exclude name="**/*.tidy.new.xml"/>
</fileset>
</apply>
</target>
<target name="batchtidy" depends="compile">
<echo message="Run tidy:"/>
<apply executable="java">
<arg value="-cp"/>
<arg value="${classpath}"/>
<arg value="RunSaxon"/>
<arg value="-tidy.new.xml"/>
<arg value="--X3dTidy.xslt"/>
<arg value="---"/>
<srcfile/>
<fileset dir="${examples}" casesensitive="yes">
<include name="**/*.x3d"/>
<exclude name="**/*.tidy.new.xml"/>
</fileset>
</apply>
</target>
<target name="commandline" depends="compile">
<apply executable="java">
<arg value="-cp"/>
<arg value="${classpath}"/>
<arg value="org.web3d.x3d.jsail.CommandLine"/>
<arg value="-validate"/>
<srcfile/>
<fileset dir="${examples}" casesensitive="yes">
<include name="**/*.xml"/>
<include name="**/*.x3d"/>
<exclude name="**/*.tidy.new.xml"/>
</fileset>
</apply>
</target>
</project>