Mercurial > hg > truffle
comparison mxtool/mx.py @ 8991:096725f4da58
the -e option to the eclipseformat can now also accept an Eclipse installation directory
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 10 Apr 2013 13:21:41 +0200 |
parents | 64d3d352f943 |
children | 7844a36d0216 |
comparison
equal
deleted
inserted
replaced
8983:6c4ac1a8cd20 | 8991:096725f4da58 |
---|---|
1559 args = parser.parse_args(args) | 1559 args = parser.parse_args(args) |
1560 if args.eclipse_exe is None: | 1560 if args.eclipse_exe is None: |
1561 args.eclipse_exe = os.environ.get('ECLIPSE_EXE') | 1561 args.eclipse_exe = os.environ.get('ECLIPSE_EXE') |
1562 if args.eclipse_exe is None: | 1562 if args.eclipse_exe is None: |
1563 abort('Could not find Eclipse executable. Use -e option or ensure ECLIPSE_EXE environment variable is set.') | 1563 abort('Could not find Eclipse executable. Use -e option or ensure ECLIPSE_EXE environment variable is set.') |
1564 | |
1565 # Maybe an Eclipse installation dir was specified - look for the executable in it | |
1566 if join(args.eclipse_exe, exe_suffix('eclipse')): | |
1567 args.eclipse_exe = join(args.eclipse_exe, exe_suffix('eclipse')) | |
1568 | |
1569 if not os.path.isfile(args.eclipse_exe) or not os.access(args.eclipse_exe, os.X_OK): | |
1570 abort('Not an executable file: ' + args.eclipse_exe) | |
1564 | 1571 |
1565 eclipseinit([], buildProcessorJars=False) | 1572 eclipseinit([], buildProcessorJars=False) |
1566 | 1573 |
1567 # build list of projects to be processed | 1574 # build list of projects to be processed |
1568 projects = sorted_deps() | 1575 projects = sorted_deps() |