<div dir="auto">I am in agreement with michalis, but I don’t have a windows install to test.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 8, 2021 at 4:44 AM Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com">michalis.kambi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">At least in case of this line:<br>
<br>
  <property name=   "node" value="node.exe"/><br>
<br>
you do not need to do anything elaborate (like a switch based on OS).<br>
Just replace it with cross-platform<br>
<br>
  <property name=   "node" value="node"/><br>
<br>
As far as I see, you only use this on<br>
<a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/build.xml#l163" rel="noreferrer" target="_blank">https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/build.xml#l163</a><br>
with Ant "exec" task, and there's no need to specify ".exe" extension<br>
on Windows there (see <a href="https://ant.apache.org/manual/Tasks/exec.html" rel="noreferrer" target="_blank">https://ant.apache.org/manual/Tasks/exec.html</a> --<br>
""" In particular, if you do not put a file extension on the<br>
executable, only .EXE files are looked for....""" ).<br>
<br>
The current version with .exe extension will fail on any non-Windows<br>
system, including Linux and Mac.<br>
<br>
Regards,<br>
Michalis<br>
<br>
pon., 7 cze 2021 o 19:57 Don Brutzman <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>> napisał(a):<br>
><br>
> Hi John, as ever thanks for looking at these many capabilities.<br>
><br>
> We strive for platform neutral.  That looks like a good candidate for using a switch based on OS to create the right property which names the executable.<br>
><br>
> Here at NPS we are primarily developing on Windows and Mac.<br>
><br>
> On 6/7/2021 7:10 AM, John Carlson wrote:<br>
> ><br>
> > Please provide a Linux version of build.xml, if possible, or tell me to<br>
> > roll my own.<br>
> ><br>
> > Rolling my own right now.<br>
> ><br>
> > John<br>
> ><br>
> > /c/x3d-code/<a href="http://www.web3d.org" rel="noreferrer" target="_blank">www.web3d.org</a>$ svn diff<br>
> > Index: x3d/stylesheets/build.xml<br>
> > ===================================================================<br>
> > --- x3d/stylesheets/build.xml   (revision 32158)<br>
> > +++ x3d/stylesheets/build.xml   (working copy)<br>
> > @@ -109,7 +109,7 @@<br>
> ><br>
> >       <property name="stylesheets.dir" location="."/><br>
> ><br>
> > -    <property name=   "node" value="node.exe"/><br>
> > +    <property name=   "node" value="node"/><br>
> ><br>
> >       <!-- ant jar manifest properties --><br>
> >       <property name="user.name.build" value="Don Brutzman,<br>
> > <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>"/><br>
> > @@ -142,9 +142,11 @@<br>
> >           </exec><br>
> >           <!--<br>
> > <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.saxonica.com%2Fdocumentation9.5%2Fusing-xsl%2Fcommandline.html&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C6d08cf30a5b64aaba03908d929be064a%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637586718971829132%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0&amp;sdata=voUOUWmkq4LFYfF7J%2FuynlCw4eOgWOPWGWCMUg7XTFc%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.saxonica.com%2Fdocumentation9.5%2Fusing-xsl%2Fcommandline.html&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C6d08cf30a5b64aaba03908d929be064a%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637586718971829132%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0&amp;sdata=voUOUWmkq4LFYfF7J%2FuynlCw4eOgWOPWGWCMUg7XTFc%3D&amp;reserved=0</a> --><br>
> >           <echo>saxon -? help</echo><br>
> > +<!--<br>
> >           <java classname="net.sf.saxon.Transform"<br>
> > classpath="${saxon.dir}/${saxon.jar};." failonerror="true"><br>
> >           <arg value="-?" description="help information"/><br>
> >           </java><br>
> > +--><br>
> >           <echo></echo><br>
> >           <!-- Ant environment variables<br>
> > <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fant.apache.org%2Fmanual%2FTasks%2Fproperty.html&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C6d08cf30a5b64aaba03908d929be064a%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637586718971834113%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0&amp;sdata=PiK56hpeJK3rBzLkLBfNW3Re5GnzpkNTNKNpJKF%2B%2F70%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fant.apache.org%2Fmanual%2FTasks%2Fproperty.html&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C6d08cf30a5b64aaba03908d929be064a%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637586718971834113%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0&amp;sdata=PiK56hpeJK3rBzLkLBfNW3Re5GnzpkNTNKNpJKF%2B%2F70%3D&amp;reserved=0</a> --><br>
> >           <echo>  ANT_HOME=${env.ANT_HOME}</echo><br>
> ><br>
><br>
> all the best, Don<br>
> --<br>
> Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>
> X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
><br>
> _______________________________________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div></div>