1 | public void setSystemProperties() {↵ | | 1 | protected void fireTaskStarted(Task task) {↵
|
2 | Properties systemP = System.getProperties();↵ | | 2 | ↵
|
3 | Enumeration e↵ | | 3 | // register this as the current task on the current thread.↵
|
| | | 4 | registerThreadTask(Thread.currentThread(), task);↵
|
| | | 5 | BuildEvent event = new BuildEvent(task);↵
|
4 | = systemP.propertyNames();↵ | | 6 | Iterator iter = listeners.iterator();↵
|
5 | while (e.hasMoreElements()) {↵ | | 7 | while (iter.hasNext()) {↵
|
6 | String propertyName = (String) e.nextElement();↵ | | 8 | ↵
|
7 | String value = systemP.getProperty(propertyName);↵ | | |
|
8 | this.setPropertyInternal(propertyName, value↵ | | 9 | BuildListener listener = (BuildListener) iter.next();↵
|
9 | );↵ | | 10 | listener.taskStarted(event);↵
|
10 | | | 11 |
|