Message-ID: <1882422291.2797.1432598297494.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_2796_1668062947.1432598297494" ------=_Part_2796_1668062947.1432598297494 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Goal: execute a program via a command line from= groovy code
Gotchas: Take care if you wish to pass a quoted argument that contains w= hite space =E2=80=93 it will be split into multiple arguments, e.g.:
will invoke executable with the following arguments:
In such a case, you may prefer to use one of the array or list of String= variations, e.g.:
Ant has an exec task and it be accessed from the AntBuilder object
The good thing is that you now have all the ant features at your disposa= l and Ant will not break up quoted args containing whitespace.
See also: Process Managem= ent