ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: howTo call an external process
Date Wed, 12 Sep 2001 07:17:57 GMT
On Wed, 12 Sep 2001, detlef brendle <detlef.brendle@canoo.com> wrote:

> I need to call an external process from within my Java program and
> parse the outputstream of the process.  What sort of built-in
> wrappers does ant have for this kind of task ?

Take a look at org.apache.tools.ant.taskdefs.Execute - this class
encapsulates the platform and VM specific logic of executing system
commands in an arbitrary directory and is used by several built-in
tasks (including <exec> and <java fork="yes">).

Stefan

Mime
View raw message