Skip to content

Commit

Permalink
Fix generation of Windows startup script: using set with "*" appeared…
Browse files Browse the repository at this point in the history
… to confuse the template engine.
  • Loading branch information
mikedawson committed May 12, 2023
1 parent 8c655a7 commit d353115
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app-ktor-server/src/scripttemplates/windowsStartScript.txt
Expand Up @@ -69,12 +69,10 @@ goto fail
:execute
@rem Setup the command line

@rem dont use generated classpath as per default template - command line will be too long. Use lib\* instead.
set CLASSPATH=%APP_HOME%\\lib\\*
<% if ( mainClassName.startsWith('--module ') ) { %>set MODULE_PATH=$modulePath<% } %>

@rem Execute ${applicationName}
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% -Dapp_home="%APP_HOME%" -Dlogs_dir="%APP_HOME%\\log" %${optsEnvironmentVar}% <% if ( appNameSystemProperty ) { %>"-D${appNameSystemProperty}=%APP_BASE_NAME%"<% } %> -classpath "%CLASSPATH%" <% if ( mainClassName.startsWith('--module ') ) { %>--module-path "%MODULE_PATH%" <% } %>${mainClassName} -config="%APP_HOME%\\ustad-server.conf" %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% -Dapp_home="%APP_HOME%" -Dlogs_dir="%APP_HOME%\\log" %${optsEnvironmentVar}% <% if ( appNameSystemProperty ) { %>"-D${appNameSystemProperty}=%APP_BASE_NAME%"<% } %> -classpath "%APP_HOME%\\lib\\*" <% if ( mainClassName.startsWith('--module ') ) { %>--module-path "%MODULE_PATH%" <% } %>${mainClassName} -config="%APP_HOME%\\ustad-server.conf" %*

:end
@rem End local scope for the variables with windows NT shell
Expand Down

0 comments on commit d353115

Please sign in to comment.