Mercurial > hg > truffle
comparison mxtool/mx.py @ 8174:67d654d9ee9a
pass JAVA_HOME to eclipse builder
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 08 Mar 2013 14:38:42 +0100 |
parents | 1446b04e4148 |
children | e0db99483b35 |
comparison
equal
deleted
inserted
replaced
8173:6d23f64f2fdb | 8174:67d654d9ee9a |
---|---|
2256 return False | 2256 return False |
2257 | 2257 |
2258 def _genEclipseBuilder(dotProjectDoc, p, name, mxCommand, refresh=True, async=False): | 2258 def _genEclipseBuilder(dotProjectDoc, p, name, mxCommand, refresh=True, async=False): |
2259 launchOut = XMLDoc(); | 2259 launchOut = XMLDoc(); |
2260 launchOut.open('launchConfiguration', {'type' : 'org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType'}) | 2260 launchOut.open('launchConfiguration', {'type' : 'org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType'}) |
2261 launchOut.open('mapAttribute', {'key' : 'org.eclipse.debug.core.environmentVariables'}) | |
2262 launchOut.element('mapEntry', {'key' : 'JAVA_HOME', 'value' : java().jdk}) | |
2263 launchOut.close('mapAttribute') | |
2264 | |
2261 if refresh: | 2265 if refresh: |
2262 launchOut.element('stringAttribute', {'key' : 'org.eclipse.debug.core.ATTR_REFRESH_SCOPE', 'value': '${project}'}) | 2266 launchOut.element('stringAttribute', {'key' : 'org.eclipse.debug.core.ATTR_REFRESH_SCOPE', 'value': '${project}'}) |
2263 launchOut.element('booleanAttribute', {'key' : 'org.eclipse.debug.core.capture_output', 'value': 'false'}) | 2267 launchOut.element('booleanAttribute', {'key' : 'org.eclipse.debug.core.capture_output', 'value': 'false'}) |
2264 launchOut.element('booleanAttribute', {'key' : 'org.eclipse.debug.ui.ATTR_CONSOLE_OUTPUT_ON', 'value': 'false'}) | 2268 launchOut.element('booleanAttribute', {'key' : 'org.eclipse.debug.ui.ATTR_CONSOLE_OUTPUT_ON', 'value': 'false'}) |
2265 if async: | 2269 if async: |