ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Problems with exec task
Date Tue, 31 Jan 2006 17:17:24 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message