Override CLASSPATH in CreateStartScripts

It looks like classpath generated in start scripts cannot be overridden.
What if after application deploy we need to expand/override classpath according to specific env?

E.g. now start script goes like this “JAVA -cp $CLASSPATH”, and it looks like CLASSPATH cannot be changed.

Does this qualify for a feature request, or there is a way to override classpath in start scripts after deploy?

Looks like start script template can be hacked with:

project.tasks.create(name: name, type: CreateStartScripts) {
        doLast {
            def unixScriptFile = file getUnixScript()
            unixScriptFile.text = unixScriptFile.text.replace('-classpath "$CLASSPATH"', '-classpath "$CP1:$CLASSPATH"')