Re: Run BAT from ANT



On 6 Oct 2005 18:50:41 -0700, ive_got_a_diploma@xxxxxxxxx wrote or
quoted :

>Does anyone know of a jar and task that lets you run
>BAT as an ANT task?

<exec executable="xxxx.exe" dir="${package.dir}">


Your executable is called something like cmd.exe or 4NT.exe. Your bat
file is a parameter to it.


See http://mindprod.com/jgloss/exec.html

What you want to do is use Java's exec to spawn a command processor
within ANT.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages

  • Run BAT from ANT
    ... Does anyone know of a jar and task that lets you run ... BAT as an ANT task? ... When I try these commands with the properties correctly defined, ...
    (comp.lang.java.softwaretools)
  • Re: OT: you couldnt make this up if you tried
    ... JaR wrote in ... whatever happened to the good old days when you just egged someone's brand ... new car and ran away like a bat out a hell. ...
    (microsoft.public.cert.exam.mcse)