Mercurial > hg > truffle
comparison mxtool/mx.py @ 18725:fdf29cc07ec2
Improved error message in mx tool when package statement cannot be found.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 19 Dec 2014 14:38:40 +0100 |
parents | 4836c2abc884 |
children | 869ee319c377 |
comparison
equal
deleted
inserted
replaced
18724:a49e0ed940c2 | 18725:fdf29cc07ec2 |
---|---|
426 if pkg and matchFound: | 426 if pkg and matchFound: |
427 break | 427 break |
428 | 428 |
429 if matchFound: | 429 if matchFound: |
430 simpleClassName = name[:-len('.java')] | 430 simpleClassName = name[:-len('.java')] |
431 assert pkg is not None | 431 assert pkg is not None, 'could not find package statement in file ' + name |
432 if pkgRoot is None or pkg.startswith(pkgRoot): | 432 if pkgRoot is None or pkg.startswith(pkgRoot): |
433 pkgOutputDir = join(outputDir, pkg.replace('.', os.path.sep)) | 433 pkgOutputDir = join(outputDir, pkg.replace('.', os.path.sep)) |
434 if exists(pkgOutputDir): | 434 if exists(pkgOutputDir): |
435 for e in os.listdir(pkgOutputDir): | 435 for e in os.listdir(pkgOutputDir): |
436 if includeInnerClasses: | 436 if includeInnerClasses: |