Subversion Repositories XServices

Rev

Rev 54 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 54 Rev 65
Line 71... Line 71...
71
        anttask.setOwningTarget(anttarget);
71
        anttask.setOwningTarget(anttarget);
72
        anttarget.addTask(anttask);
72
        anttarget.addTask(anttask);
73
        antproject.addOrReplaceTarget(anttarget);
73
        antproject.addOrReplaceTarget(anttarget);
74
    }
74
    }
Line -... Line 75...
-
 
75
 
-
 
76
    /**
-
 
77
     * @return ReturnCode type {@link ReturnCode}
-
 
78
     * @throws BuildException
75
 
79
     */
76
    public ReturnCode postTask() {
80
    public ReturnCode postTask() throws BuildException {
77
        int returnCode = 0;
81
        int returnCode = 0;
78
        Map<String, String> origMap = new HashMap<String, String>();
82
        Map<String, String> origMap = new HashMap<String, String>();
79
        Map<String, String> newMap = null;
83
        Map<String, String> newMap = null;
80
        origMap.putAll(antproject.getProperties());
-
 
81
        try {
84
        origMap.putAll(antproject.getProperties());
82
            antproject.executeTarget(anttarget.getName());
-
 
83
        } catch (BuildException ex) {
-
 
84
            err.print(ex.getMessage());
-
 
85
            returnCode = 1;
-
 
86
        }
85
        antproject.executeTarget(anttarget.getName());
87
        newMap = antproject.getProperties();
86
        newMap = antproject.getProperties();
Line 88... Line 87...
88
        newMap.putAll(antproject.getUserProperties());
87
        newMap.putAll(antproject.getUserProperties());
89
        
88