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 Sun, 14 Jun 2015 21:35:38 GMT
Stephen....

Are you suggesting on doing something like this....

<target>
<property name="name" value="pathtonewversion of ant jar"> // value takes
in new ant.jar may be a newer ant version
<java jar="name" fork="true"/>

and then all delete
</target>

Thanks


On Sun, Jun 14, 2015 at 5:09 PM, aalok singhvi <aaloksinghvi@gmail.com>
wrote:

> Stephen can you give me an example on update jars where I use ant within
> ant.
> On Jun 14, 2015 3:16 PM, "Stefan Bodewig" <bodewig@apache.org> wrote:
>
>> On 2015-06-14, aalok singhvi wrote:
>>
>> > I tried using "deleteonexit" and it is know allowing me to delete
>> something
>> > of the jars but not allowing me to delete 2 directories. It says the
>> once
>> > Ant JVM is terminated it can be deleted.
>>
>> This is what I described.  This happens if the JVM has opened the files
>> and closed them again.  For some reason the JVM on Windows and the OS
>> disagree on whether the file is closed, there isn't anything you can do
>> but either ensure the files are never opened in the first place or exit
>> the VM.
>>
>> > Can we terminate ant jvm and restart once this delete is completed. I
>> know
>> > its a stupid question but just wanted to see if you have seen this
>> before
>> > by any chance.
>>
>> This would mean you'd need two separate build steps with two separate
>> invocations of Ant.  Something like
>>
>> ,----
>> | > ant update-jars
>> | > ant do-what-I-really-wanted-to-do
>> `----
>>
>> That would probably work.  Maybe you don't need to check for updates all
>> the time?  An in-buildfile way would be to execute Ant from inside Ant
>> using <java fork="true">, but that's not straight forward either.
>>
>> > Let me check if I can extract a small build. i will need to get
>> approvals
>> > on that.
>>
>> That would be good.
>>
>> Stefan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>


-- 
Aalok Singhvi

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