Mercurial > hg > graal-compiler
comparison mxtool/mx.py @ 13982:b167b1838029
mx eclipseinit: take care of working sets that were edited by hand
author | Michael Haupt <michael.haupt@oracle.com> |
---|---|
date | Thu, 20 Feb 2014 11:14:46 +0100 |
parents | 6c6d1eacc398 |
children | 9d8aaa3200a3 |
comparison
equal
deleted
inserted
replaced
13981:a1b71ebfdf5f | 13982:b167b1838029 |
---|---|
3055 | 3055 |
3056 def _ws_item(name, attributes): | 3056 def _ws_item(name, attributes): |
3057 if name == 'item': | 3057 if name == 'item': |
3058 if ps.current_ws is None: | 3058 if ps.current_ws is None: |
3059 target.element(name, attributes) | 3059 target.element(name, attributes) |
3060 elif not attributes.has_key('elementID') and attributes.has_key('factoryID') and attributes.has_key('path') and attributes.has_key('type'): | |
3061 target.element(name, attributes) | |
3062 p_name = attributes['path'][1:] # strip off the leading '/' | |
3063 ps.seen_projects.append(p_name) | |
3060 else: | 3064 else: |
3061 p_name = attributes['elementID'][1:] # strip off the leading '=' | 3065 p_name = attributes['elementID'][1:] # strip off the leading '=' |
3062 _workingset_element(target, p_name) | 3066 _workingset_element(target, p_name) |
3063 ps.seen_projects.append(p_name) | 3067 ps.seen_projects.append(p_name) |
3064 elif name == 'workingSet': | 3068 elif name == 'workingSet': |