Yes, that does indeed look like a bug.  I'll take a look at it this evening.

Thanks,

Dale


On Wed, Jun 2, 2010 at 9:09 AM, <matthias.gaertner@gtnexus.com> wrote:
Hello Dale,
Hello all,

there may be a bug in ise.antelope.tasks.condition.StartsWith (at least
in version 3.5.1):

1.
Is:
   public void setProperty(String s) {
       String propertyName = s;
   }
Should be:
   public void setProperty(String s) {
       propertyName = s;
   }

2.
Is:
       if (string == null || propertyName == null)
           throw new BuildException("string or property must be set.");
Should be:
       if (string == null && propertyName == null)
           throw new BuildException("string or property must be set.");


Unfortunately this makes the class unusable since propertyName cannot be
set to a non-null value.
Workaround may be to use stringutil.indexof and check the value against
"0".


Best regards,
Matthias