Fix getProperty retrieval

git-svn-id: https://brutex.net/svn/xservices/trunk@73 e7e49efb-446e-492e-b9ec-fcafc1997a86
tag-20130205r
Brian Rosenberger 2011-12-31 13:08:12 +00:00
parent bcb98c74c6
commit 681b5580e2
1 changed files with 8 additions and 1 deletions

View File

@ -80,12 +80,19 @@ public class ReturnCode {
this.property = props; this.property = props;
} }
/**
* @param key
* @return
*/
public String getProperty(String key) { public String getProperty(String key) {
for(AntProperty prop : this.property) { for(AntProperty prop : this.property) {
if(prop.equals(key)) return prop.value; if(key.equals(prop.name)) return prop.value;
} }
return null; return null;
} }
/**
* @return
*/
public String getStdOut() { return this.stdOut; } public String getStdOut() { return this.stdOut; }
} }