Fix getProperty retrieval
git-svn-id: https://brutex.net/svn/xservices/trunk@73 e7e49efb-446e-492e-b9ec-fcafc1997a86tag-20130205r
parent
bcb98c74c6
commit
681b5580e2
|
@ -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; }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue