Subversion Repositories XServices

Compare Revisions

Regard whitespace Rev 64 → Rev 65

/xservices/trunk/src/java/net/brutex/xservices/util/RunTask.java
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;
}
newMap = antproject.getProperties();
newMap.putAll(antproject.getUserProperties());