[x3d-public] ant question

John Carlson yottzumm at gmail.com
Mon Nov 8 20:43:49 PST 2021


I''d like to combine the two targets, so I can put more than on file arg 
on the end of the Main command, without breaking beyond the maximum 
number of args.

Any assistance is welcome.

<target name="run">
          <foreach target="runone" param="theFile">
            <fileset dir="${examples}" casesensitive="yes">
              <include name="**/*.json"/>
            </fileset>
          </foreach>
        </target>

        <target name="runone">
                <echo message="Main ${theFile} with classpath 
${classpath}"/>
                <java classname="Main" classpath="${classpath}">
                        <arg value="${theFile}"/>
                </java>
        </target>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20211108/0197e45d/attachment.html>


More information about the x3d-public mailing list