Subversion Repositories XServices

Rev

Rev 83 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 181
Line 17... Line 17...
17
 
17
 
18
import java.io.ByteArrayOutputStream;
18
import java.io.ByteArrayOutputStream;
19
import java.io.PrintStream;
19
import java.io.PrintStream;
20
import java.util.HashMap;
20
import java.util.HashMap;
-
 
21
import java.util.Map;
21
import java.util.Map;
22
 
22
import net.brutex.xservices.types.ReturnCode;
23
import net.brutex.xservices.types.ReturnCode;
Line 23... Line 24...
23
import net.brutex.xservices.types.ant.AntProperty;
24
import net.brutex.xservices.types.ant.AntProperty;
24
 
25
 
Line 78... Line 79...
78
     * @return ReturnCode type {@link ReturnCode}
79
     * @return ReturnCode type {@link ReturnCode}
79
     * @throws BuildException
80
     * @throws BuildException
80
     */
81
     */
81
    public ReturnCode postTask() throws BuildException {
82
    public ReturnCode postTask() throws BuildException {
82
        int returnCode = 0;
83
        int returnCode = 0;
83
        Map<String, String> origMap = new HashMap<String, String>();
84
        Map<String, Object> origMap = new HashMap<String, Object>();
84
        Map<String, String> newMap = null;
85
        Map<String, Object> newMap = null;
85
        origMap.putAll(antproject.getProperties());
86
        origMap.putAll(antproject.getProperties());
86
        antproject.executeTarget(anttarget.getName());
87
        antproject.executeTarget(anttarget.getName());
87
        newMap = antproject.getProperties();
88
        newMap = antproject.getProperties();
88
        newMap.putAll(antproject.getUserProperties());
89
        newMap.putAll(antproject.getUserProperties());
Line 89... Line 90...
89
        
90
        
90
        for (Map.Entry<String, String> e : origMap.entrySet()) {
91
        for (Map.Entry<String, Object> e : origMap.entrySet()) {
91
            newMap.remove(e.getKey());
92
            newMap.remove(e.getKey());
Line 92... Line 93...
92
        }
93
        }
93
 
94