ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aalok singhvi <aaloksing...@gmail.com>
Subject Re: WELCOME to user@ant.apache.org
Date Mon, 15 Jun 2015 12:32:37 GMT
When I use execute something  like..

exec name=cmd
   Arg= /c
   Arg=ant path to the batch file under bin
   Arg=-p
End exec

Delete

Both exec and delete are in same target. It delete all files except two
saying that attempts to delete the file when ant jvm has exited and might
not succeed.
On Jun 14, 2015 11:57 PM, "Stefan Bodewig" <bodewig@apache.org> wrote:

> 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="org.apache.tools.ant.Main">
>   <classpath>
>     <fileset dir="${ant.home}">
>       <includes name="lib/*.jar"/>
>     </fileset>
>   </classpath>
> </java>
>
> But the exec approach may be superior as the batch file taskes care of
> several installation specific special cases.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message