73,17 → 73,16 |
antproject.addOrReplaceTarget(anttarget); |
} |
|
public ReturnCode postTask() { |
/** |
* @return ReturnCode type {@link ReturnCode} |
* @throws BuildException |
*/ |
public ReturnCode postTask() throws BuildException { |
int returnCode = 0; |
Map<String, String> origMap = new HashMap<String, String>(); |
Map<String, String> newMap = null; |
origMap.putAll(antproject.getProperties()); |
try { |
antproject.executeTarget(anttarget.getName()); |
} catch (BuildException ex) { |
err.print(ex.getMessage()); |
returnCode = 1; |
} |
antproject.executeTarget(anttarget.getName()); |
newMap = antproject.getProperties(); |
newMap.putAll(antproject.getUserProperties()); |
|