ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: WELCOME to
Date Mon, 15 Jun 2015 03:57:38 GMT
On 2015-06-14, aalok singhvi wrote:

> Stephen can you give me an example on update jars where I use ant within
> ant.

<exec> invoking ant.bat is probably the easiest way for starting Ant
from within a buildfile.

Ant's main jar (ant-launcher.jar in 1.7.0 IIRC) doesn't contain a
Main-Class entry in its manifest, when using <java> it would be
something like (untested)

<java fork="true" class="">
    <fileset dir="${ant.home}">
      <includes name="lib/*.jar"/>

But the exec approach may be superior as the batch file taskes care of
several installation specific special cases.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message