diff --git a/src/java/net/brutex/xservices/types/ReturnCode.java b/src/java/net/brutex/xservices/types/ReturnCode.java index 6a46094..c460334 100644 --- a/src/java/net/brutex/xservices/types/ReturnCode.java +++ b/src/java/net/brutex/xservices/types/ReturnCode.java @@ -80,12 +80,19 @@ public class ReturnCode { this.property = props; } + /** + * @param key + * @return + */ public String getProperty(String key) { for(AntProperty prop : this.property) { - if(prop.equals(key)) return prop.value; + if(key.equals(prop.name)) return prop.value; } return null; } + /** + * @return + */ public String getStdOut() { return this.stdOut; } }