Skip to content

Commit

Permalink
Merge pull request graalvm#128 in G/mx from topic/intellij to master
Browse files Browse the repository at this point in the history
* commit 'e49066b704dd96a91a029c6e6a1181411004508c':
  Fix intellijinit error when there is no sourcePath
  • Loading branch information
dougxc committed Jun 24, 2016
2 parents 6cd117f + e49066b commit e108308
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -11467,7 +11467,7 @@ def make_library(name, path, source_path):
libraryXml.element('root', attributes={'url': 'jar://$PROJECT_DIR$/' + path + '!/'})
libraryXml.close('CLASSES')
libraryXml.element('JAVADOC')
if sourcePath != "":
if sourcePath:
libraryXml.open('SOURCES')
libraryXml.element('root', attributes={'url': 'jar://$PROJECT_DIR$/' + source_path + '!/'})
libraryXml.close('SOURCES')
Expand All @@ -11481,6 +11481,7 @@ def make_library(name, path, source_path):

# Setup the libraries that were used above
for library in libraries:
sourcePath = None
if library.isLibrary():
path = os.path.relpath(library.path, suite.dir)
if library.sourcePath:
Expand Down

0 comments on commit e108308

Please sign in to comment.