Skip to content

Commit

Permalink
Fix intellijinit error when there is no sourcePath
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-duboscq committed Jun 24, 2016
1 parent 9df4d2c commit e49066b
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 e49066b

Please sign in to comment.