https://bz.apache.org/bugzilla/show_bug.cgi?id=61315

--- Comment #5 from Stefan Bodewig <[email protected]> ---
works fine with ant-contrib as well

$ cat f.xml 
<project>
  <taskdef resource="net/sf/antcontrib/antlib.xml">
    <classpath>
      <pathelement location="ant-contrib-1.0b3.jar"/>
    </classpath>
  </taskdef>
  <if>
    <isset property="RMOBINTERMEDIUM.UserName"/>
    <then>
      <echo>schema exists</echo>
    </then>
    <else>
      <echo>schema doesn't exists</echo>
    </else>
  </if>
</project>
/tmp$ ant -f f.xml 
Buildfile: /tmp/f.xml
     [echo] schema doesn't exists

BUILD SUCCESSFUL
Total time: 0 seconds
$ ant -f f.xml -DRMOBINTERMEDIUM.UserName=x
Buildfile: /tmp/f.xml
     [echo] schema exists

BUILD SUCCESSFUL
Total time: 0 seconds

So I think it is not isset but rather the way you actually set the property
(and which you haven't shown). I'm guessing now that you are using xmlproperty
- if so bug 26286 which has been fixed for Ant 1.7.0 might be the root cause.
If my guess is correct, then your current script depends on something we have
considered a bug and fixed almost 11 years ago.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to