1 | for (Iterator i = antTypeTable.keySet().iterator();↵ | | |
|
2 | i.hasNext();) {↵ | | 1 | while (e.hasMoreElements()) {↵
|
3 | String name = (String) i.next();↵ | | 2 | String ↵
|
4 | Class clazz = antTypeTable.getExposedClass(name);↵ | | |
|
5 | if (clazz == null) {↵ | | |
|
6 | ↵ | | 3 | key = e.nextElement().toString();↵
|
| | | 4 | if (MagicNames.PROJECT_BASEDIR.equals(key) || MagicNames.ANT_FILE.equals(key)) {↵
|
| | | 5 | // basedir and ant.file get special treatment in execute()↵
|
7 | continue;↵ | | 6 | continue;↵
|
8 | ↵ | | 7 | }↵
|
|
9 | }↵ | | 8 | ↵
|
10 | if (Task.class.isAssignableFrom(clazz)) {↵ | | |
|
11 | taskClassDefinitions.put(↵ | | |
|
12 | name, antTypeTable.getTypeClass(name));↵ | | |
|
13 | }↵ | | |
|
14 | ↵ | | 9 | String value = props.get(key).toString();↵
|
| | | 10 | // don't re-set user properties, avoid the warning message↵
|
| | | 11 | if (newProject.getProperty(key) == null) {↵
|
| | | 12 | // no user property↵
|
| | | 13 | newProject.setNewProperty(key, value);↵
|
| | | 14 | }↵
|
15 | } | | 15 | }
|