Application plugin classpath with pattern and relative to env var

(david koch) #1

I’ve tried to change the classpath in the application scipts so it uses a path pattern like %APP_HOME%\lib* instead of adding every single jar file to the path. I need it in order to be able to place additional jars into the path later on.

Unfortunately the classpath property of the CreateStartScripts is a FileCollection so I’m not able to assign anything with * to it. So classpath pattern wouldn’t work this way.

The other issue is how to set and/or use environment variables in the start script in an os independent way. For now I have to distinguish both scripts in order to set




I guess the CreateStartScripts.classpath property needs to be of class String/String[] or even Object/Objects[]?

Thanks, David