Dick, Brian E. wrote:
-- hello there.vbs
strArg   = ""
strDelim = ""

for each objItem in WScript.Arguments
   strArg   = strArg & strDelim & objItem
   strDelim = " "
next

WScript.echo "hello there, " & strArg

-- cscript.xml
<project name="cscript" default="hello">

   <target name="hello">
      <exec taskname="cscript"
            executable="cscript.exe"
      >
         <arg file="hello there.vbs"/>
         <arg value="//Nologo"/>

         <arg value="Rhino"/>
      </exec>
   </target>

</project>

-- example run
C:\temp\ant -f cscript.xml
Buildfile: cscript.xml

hello:
  [cscript] hello there, Rhino


You know, I'd ignored WSF for a long time, but given that it has access to the whole world of COM objects out there, a bit of ant integration could be kind of useful.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to