Skip to content

Commit e108308

Browse files
committed
Merge pull request graalvm#128 in G/mx from topic/intellij to master
* commit 'e49066b704dd96a91a029c6e6a1181411004508c': Fix intellijinit error when there is no sourcePath
2 parents 6cd117f + e49066b commit e108308

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mx.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11467,7 +11467,7 @@ def make_library(name, path, source_path):
1146711467
libraryXml.element('root', attributes={'url': 'jar://$PROJECT_DIR$/' + path + '!/'})
1146811468
libraryXml.close('CLASSES')
1146911469
libraryXml.element('JAVADOC')
11470-
if sourcePath != "":
11470+
if sourcePath:
1147111471
libraryXml.open('SOURCES')
1147211472
libraryXml.element('root', attributes={'url': 'jar://$PROJECT_DIR$/' + source_path + '!/'})
1147311473
libraryXml.close('SOURCES')
@@ -11481,6 +11481,7 @@ def make_library(name, path, source_path):
1148111481

1148211482
# Setup the libraries that were used above
1148311483
for library in libraries:
11484+
sourcePath = None
1148411485
if library.isLibrary():
1148511486
path = os.path.relpath(library.path, suite.dir)
1148611487
if library.sourcePath:

0 commit comments

Comments
 (0)