Skip to content

Commit e49066b

Browse files
Fix intellijinit error when there is no sourcePath
1 parent 9df4d2c commit e49066b

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)