[x3d-public] X3DJSAIL CommandLine -toJava request...package name (maybe className)
John Carlson
yottzumm at gmail.com
Mon Jul 28 02:50:35 PDT 2025
Can the output Java package name be provided as an optional parameter to
X3DJSAIL's CommandLine? I would like to add a package name, similar to the
Transform command in Java. Note that in the past, if I am calling
net.sf.saxon.Transform.main(new String[] {
"-warnings:recover",
"-dtd:off",
"-expand:on",
"-o:"+out,
"-s:"+source,
"-xsl:"+stylesheet,
"packageName=net.x3djsonld.data",
"className="+out.substring(out.lastIndexOf("/")+1,
out.lastIndexOf(".")).replace(".", "_")
});
I am replacing Saxon with X3DJSAIL for Java and Python generation in my
"don" shell scripts. Instead, I am doing something like this:
org.web3d.x3d.jsail.CommandLine.main(new String[] {
source,
stylesheet, // -toJava or -toPython
"-tofile",
out
});
In order to create greater compatibility between Java and Python generated
from X3DJSAIL, instead of using stylesheets directly.
Also, providing a way to set the Java className with CommandLine would be
great too.
I will wait on running my don script until such a feature is available, or
I will just pause on using Java and Python generating stylesheets.
Thanks!
Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250728/66396003/attachment.html>
More information about the x3d-public
mailing list