Skip to content

Commit

Permalink
Allow user to specify arbitrary mainClass and projectName
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP authored and daveleroy committed Nov 20, 2022
1 parent e4bd9b2 commit d2b7570
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/adapters/java.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def _is_undefined(key):
if _is_undefined('console'):
configuration['console'] = 'internalConsole'

configuration['mainClass'], configuration['projectName'] = await self._get_mainclass_project_name(None if _is_undefined('mainClass') else configuration['mainClass'])
if _is_undefined('mainClass') or _is_undefined("projectName"):
configuration['mainClass'], configuration['projectName'] = await self._get_mainclass_project_name(None if _is_undefined('mainClass') else configuration['mainClass'])
if _is_undefined('classPaths') and _is_undefined('modulePaths'):
configuration['modulePaths'], configuration['classPaths'] = await self._resolve_modulepath_classpath(configuration['mainClass'], configuration['projectName'])

Expand Down

0 comments on commit d2b7570

Please sign in to comment.