-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathni.sh
More file actions
28 lines (21 loc) · 3.16 KB
/
Copy pathni.sh
File metadata and controls
28 lines (21 loc) · 3.16 KB
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
#!/bin/bash
# watch out for too many CommandLines processes wiping out your database, check config-output-dir versus config-merge-dir
~/Downloads/graalvm-community-jdk-24.0.2_windows-x64_bin/graalvm-community-openjdk-24.0.2+11.1/bin/java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image \
-cp "src/main/java;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/xercesImpl.jar;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/xmlresolver-5.2.2-data.jar;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/xmlresolver-5.2.2.jar;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/saxon-he-12.5.jar;C:/Users/jcarl/www.web3d.org/x3d/tools/X3dQualityAssurance/X3dValidator/lib/slf4j-api-2.0.9.jar;C:/Users/jcarl/www.web3d/org/x3d/tools/X3dQualityAssurance/X3dValidator/lib/slf4j-jcl-1.7.36.jar;C:/Users/jcarl/www.web3d.org/x3d/tools/X3dQualityAssurance/X3dValidator/lib/slf4j-simple-2.0.12.jar;X3DJSAIL.4.0.full.jar" \
net.coderextreme.CommandLines
# This merges all subsequent commands with the above database
find src/main/data -name '*.x3d' | grep -v new | xargs ~/Downloads/graalvm-community-jdk-24.0.2_windows-x64_bin/graalvm-community-openjdk-24.0.2+11.1/bin/java -agentlib:native-image-agent=config-merge-dir=src/main/resources/META-INF/native-image \
-cp "src/main/java;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/xercesImpl.jar;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/xmlresolver-5.2.2-data.jar;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/xmlresolver-5.2.2.jar;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/saxon-he-12.5.jar;C:/Users/jcarl/www.web3d.org/x3d/tools/X3dQualityAssurance/X3dValidator/lib/slf4j-api-2.0.9.jar;C:/Users/jcarl/www.web3d/org/x3d/tools/X3dQualityAssurance/X3dValidator/lib/slf4j-jcl-1.7.36.jar;C:/Users/jcarl/www.web3d.org/x3d/tools/X3dQualityAssurance/X3dValidator/lib/slf4j-simple-2.0.12.jar;X3DJSAIL.4.0.full.jar" \
net.coderextreme.CommandLines
# now compile CommandLine with that database in META-INF/native-image
~/Downloads/graalvm-community-jdk-24.0.2_windows-x64_bin/graalvm-community-openjdk-24.0.2+11.1/bin/native-image.cmd \
--initialize-at-run-time=org.xmlresolver,net.sf.saxon,org.apache.xerces \
--initialize-at-run-time=org.xmlresolver.cache.ResourceCache \
-H:+ReportExceptionStackTraces \
--no-fallback \
--enable-url-protocols=https \
-march=native \
-cp "src/main/java;src/main/resources;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/xercesImpl.jar;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/xmlresolver-5.2.2-data.jar;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/xmlresolver-5.2.2.jar;C:/Users/jcarl/www.web3d.org/x3d/stylesheets/java/lib/saxon-he-12.5.jar;C:/Users/jcarl/www.web3d.org/x3d/tools/X3dQualityAssurance/X3dValidator/lib/slf4j-api-2.0.9.jar;C:/Users/jcarl/www.web3d.org/x3d/tools/X3dQualityAssurance/X3dValidator/lib/slf4j-jcl-1.7.36.jar;C:/Users/jcarl/www.web3d.org/x3d/tools/X3dQualityAssurance/X3dValidator/lib/slf4j-simple-2.0.12.jar;X3DJSAIL.4.0.full.jar" \
net.coderextreme.CommandLines \
-o CommandLines
# Nwo use CommandLines wherever you would use the `java net.CommandLines`