You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alex Gugel <al...@100world.de> on 2001/06/07 14:05:27 UTC

how can i remove a property

Stefan Bodewig wrote:
>> Does running ant -verbose give any clues?  


Thank your very much. The -verbose option helped a lot. The property has
already been set by another ant script. I have the following situation:

A --calls--> S --calls--> B --calls--> S

The first S set the property. And for the second S the property is
already present.

I tried to remove the property but without success. I tried (in S)

<ant dir="${build.dir}" antfile="B.xml" target="use-modules">
  <!--reset the helper property modules-ant-->
  <property name="modules-ant" value="false"/>
</ant>

but it doesn't work. nor does:

<property name="modules-ant" value="false"/>
<property name="modules-ant" value=""/>
<property name="modules-ant"/>

is there a way to remove a set property?

yours 

alex

Re: how can i remove a property

Posted by Stefan Bodewig <bo...@apache.org>.
Alex Gugel <al...@100world.de> wrote:

> is there a way to remove a set property?

No built-in way, sorry.  You'd have to write a task that does this (or
use a script).

Stefan