alex-sherwin / missing-link

Simple ant http plugin
0 stars 1 forks source link

Property support for entity does not work #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The recently added attribute value for entity does not work as expected. The 
method isValid in class EntityNode does not respect if the value attribute has 
been set. It should be something like:

  public boolean isValid() {
    if (null != text && text.length() > 0) {
      return true;
    } else if (null != file) {
      return true;
    } else if (null != value) {
      return true;
    }
    return false;
  }

Sorry not reporting this until now. I just assumed that this worked but a few 
minutes ago a colleague spotted a 500 error in a log... :)

Original issue reported on code.google.com by anders.j...@gmail.com on 14 Sep 2011 at 11:52