Mercurial > hg > truffle
comparison mxtool/mx.py @ 5252:1a9a048386d6
added JRE to source path in generated Eclipse launches
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 19 Apr 2012 16:26:16 +0200 |
parents | b9db4fee6eb2 |
children | bfc9aeb1264c |
comparison
equal
deleted
inserted
replaced
5251:467de393651a | 5252:1a9a048386d6 |
---|---|
1445 def _source_locator_memento(deps): | 1445 def _source_locator_memento(deps): |
1446 slm = XMLDoc() | 1446 slm = XMLDoc() |
1447 slm.open('sourceLookupDirector') | 1447 slm.open('sourceLookupDirector') |
1448 slm.open('sourceContainers', {'duplicates' : 'false'}) | 1448 slm.open('sourceContainers', {'duplicates' : 'false'}) |
1449 | 1449 |
1450 # Every Java program depends on the JRE | |
1451 memento = XMLDoc().element('classpathContainer', {'path' : 'org.eclipse.jdt.launching.JRE_CONTAINER'}).xml() | |
1452 slm.element('classpathContainer', {'memento' : memento, 'typeId':'org.eclipse.jdt.launching.sourceContainer.classpathContainer'}) | |
1453 | |
1450 for dep in deps: | 1454 for dep in deps: |
1451 if dep.isLibrary(): | 1455 if dep.isLibrary(): |
1452 if hasattr(dep, 'eclipse.container'): | 1456 if hasattr(dep, 'eclipse.container'): |
1453 memento = XMLDoc().element('classpathContainer', {'path' : getattr(dep, 'eclipse.container')}).xml() | 1457 memento = XMLDoc().element('classpathContainer', {'path' : getattr(dep, 'eclipse.container')}).xml() |
1454 slm.element('classpathContainer', {'memento' : memento, 'typeId':'org.eclipse.jdt.launching.sourceContainer.classpathContainer'}) | 1458 slm.element('classpathContainer', {'memento' : memento, 'typeId':'org.eclipse.jdt.launching.sourceContainer.classpathContainer'}) |