Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 13727:10e6f192631f
added library sources (if available) to generated Eclipse attach launcher
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 22 Jan 2014 13:39:45 +0100 |
parents | c4ff08d2aa0d |
children | 43c7df32d5ab |
comparison
equal
deleted
inserted
replaced
13726:343541fb3b49 | 13727:10e6f192631f |
---|---|
2749 for dep in deps: | 2749 for dep in deps: |
2750 if dep.isLibrary(): | 2750 if dep.isLibrary(): |
2751 if hasattr(dep, 'eclipse.container'): | 2751 if hasattr(dep, 'eclipse.container'): |
2752 memento = XMLDoc().element('classpathContainer', {'path' : getattr(dep, 'eclipse.container')}).xml(standalone='no') | 2752 memento = XMLDoc().element('classpathContainer', {'path' : getattr(dep, 'eclipse.container')}).xml(standalone='no') |
2753 slm.element('classpathContainer', {'memento' : memento, 'typeId':'org.eclipse.jdt.launching.sourceContainer.classpathContainer'}) | 2753 slm.element('classpathContainer', {'memento' : memento, 'typeId':'org.eclipse.jdt.launching.sourceContainer.classpathContainer'}) |
2754 elif dep.get_source_path(resolve=True): | |
2755 memento = XMLDoc().element('archive', {'detectRoot' : 'true', 'path' : dep.get_source_path(resolve=True)}).xml(standalone='no') | |
2756 slm.element('container', {'memento' : memento, 'typeId':'org.eclipse.debug.core.containerType.externalArchive'}) | |
2754 else: | 2757 else: |
2755 memento = XMLDoc().element('javaProject', {'name' : dep.name}).xml(standalone='no') | 2758 memento = XMLDoc().element('javaProject', {'name' : dep.name}).xml(standalone='no') |
2756 slm.element('container', {'memento' : memento, 'typeId':'org.eclipse.jdt.launching.sourceContainer.javaProject'}) | 2759 slm.element('container', {'memento' : memento, 'typeId':'org.eclipse.jdt.launching.sourceContainer.javaProject'}) |
2757 | 2760 |
2758 slm.close('sourceContainers') | 2761 slm.close('sourceContainers') |
3095 out.element('factorypathentry', {'kind' : 'WKSPJAR', 'id' : '/' + dep.name + '/' + dep.name + '.jar', 'enabled' : 'true', 'runInBatchMode' : 'false'}) | 3098 out.element('factorypathentry', {'kind' : 'WKSPJAR', 'id' : '/' + dep.name + '/' + dep.name + '.jar', 'enabled' : 'true', 'runInBatchMode' : 'false'}) |
3096 out.close('factorypath') | 3099 out.close('factorypath') |
3097 update_file(join(p.dir, '.factorypath'), out.xml(indent='\t', newl='\n')) | 3100 update_file(join(p.dir, '.factorypath'), out.xml(indent='\t', newl='\n')) |
3098 files.append(join(p.dir, '.factorypath')) | 3101 files.append(join(p.dir, '.factorypath')) |
3099 | 3102 |
3100 _, launchFile = make_eclipse_attach(suite, 'localhost', '8000', deps=projects()) | 3103 _, launchFile = make_eclipse_attach(suite, 'localhost', '8000', deps=sorted_deps(projectNames=None, includeLibs=True)) |
3101 files.append(launchFile) | 3104 files.append(launchFile) |
3102 | 3105 |
3103 _zip_files(files, suite.dir, configZip.path) | 3106 _zip_files(files, suite.dir, configZip.path) |
3104 _zip_files(libFiles, suite.dir, configLibsZip) | 3107 _zip_files(libFiles, suite.dir, configLibsZip) |
3105 | 3108 |