After cloning the repository, here’s how to build.
-
Ensure you have git and JDK 8 or above installed. All other dependencies are included in the repository.
-
Set the
JAVA_HOMEenvironment variable to point to the directory where the JDK is installed. For example:-
export JAVA_HOME=/usr/lib/jvm/openjdk-11← Ubuntu, etc. -
export JAVA_HOME=$(/usr/libexec/java_home)← macOS -
set JAVA_HOME=C:\Program Files\Java\jdk-11← Windows
-
-
Clone the repository
git clone https://github.com/relaxng/jing-trang.git`
-
Change your working directory to be the
jing-trangdirectory (that is, the directory containing this file). -
Run the
antscript included in the repository. On Linux, use the command./ant. On Windows, use.\ant. That runs the version ofantincluded in the repository. When theantscript completes, you should findjing.jarandtrang.jarfiles in thebuildsubdirectory. You can also tell theantscript to build thetesttarget, which will build the jars and then run some tests. On Linux, use the command./ant test. On Windows, use.\ant test.