[x3d-public] X3D JSON Schema updated for axis++ defaults
John Carlson
yottzumm at gmail.com
Fri Oct 28 00:25:30 PDT 2022
Let me know what build.xml you want to use X3DJSAIL to validate JSON files
with, and I work towards that path. See carbon copied build.xml below.
Let me know of your validator of choice for JSON.
I have currently modified
www.web3d.org/x3d/stylesheets/java/examples/build.xml to validate JSON
examples. I don't know where the JSON archive is, so you'll have to
reprogram the "examples" folder.
Please review json target in that build.xml
I also got create.X3DJSAIL target working again.
Thanks!
On Tue, Feb 15, 2022 at 10:27 PM Brutzman, Donald (Don) (CIV) <
brutzman at nps.edu> wrote:
> John, I can replace the [ JSON ]schema in the official repository, but we
> still have a severe difficulty in that there is no build process to check
> it against X3D Examples scenes. As ever, using Java latest and Ant build
> tasks will be the path to mainstreaming. We have been blocked by that for
> several years, and JSON Schema is still in draft status.
>
<?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="examples" value="/x3d-code/
www.web3d.org/x3d/content/examples"/>
<property name="classpath" value=".:/x3d-code/
www.web3d.org/x3d/stylesheets/java/jars/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">
<echo message="Build modules:"/>
<echo message="Compile: with classpath ${classpath}"/>
<javac includes="Validate.java,X3DJSONLD.java" srcdir="."
destdir="." classpath="${classpath}" includeantruntime="false"
fork="${fork}"/>
<echo message="Run:"/>
<antcall target="run"/>
</target>
<target name="run">
<foreach target="runone" param="theFile">
<fileset dir="${examples}" casesensitive="yes">
<include name="**/*.json"/>
</fileset>
</foreach>
</target>
<target name="runone">
<echo message="Validate ${theFile} with classpath
${classpath}"/>
<java classname="Validate" classpath="${classpath}">
<arg value="${theFile}"/>
</java>
</target>
</project>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221028/157b0141/attachment-0001.html>
More information about the x3d-public
mailing list