ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Feature Request - Executor setting though the script
Date Thu, 05 Nov 2009 13:40:26 GMT
On 2009-11-05, Raja Nagendra Kumar <Nagendra.Raja@tejasoft.com> wrote:

> Instead of specifying the executor though ANT_OPTS is it possible to set the
> executor though the ant build.xml script.

If you use a task at the top level, may work.  Setting the executor via
a task is a matter of invoking Project.setExecutor.

I'm not too familiar with Executor but it seems to be enough to simply
declare a reference with the correct name.  I.e. you don't even need a
custom task.

Something like

<typedef name="some-name" class="your.executor.here">
  <classpath location="if-necessary"/>
</typedef>
<some-name id="ant.executor"/>

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message