u can pass properties values by vmArg/env/args sconfigurations of launch.json like below,
so u can use ${LOGDIR} in ur springboot project properties files like ERROR_LOG_DIR=${LOGDIR}/error to get the value.
BUt i dont know it will use which of vmArg/env/args.
"vmArgs": [
"-DLOGDIR=c:/logs",
],
"env": {
"LOGDIR":"c:/logs",
},
"args": [
"LOGDIR=c:/logs",
]
set the env variables without vscode
u can ‘set LOGDIR=c:/logs’ in cmd in windows,
or ‘export LOGDIR=c:/logs’ in linux.
set the args variables without vscode, i am not sure because it is not tested
java -cp XXX(eg:org.xxxBatch) LOGDIR=c:/logs
set the vmArgs variables without vscode, i am not sure because it is not tested
java -jar --LOGDIR=c:/logs XXXXX.jar
or java -jar -LOGDIR=c:/logs XXXXX.jar??