Forum Discussion

rkrisztian's avatar
rkrisztian
Visitor
8 years ago

Cannot extend JAVA_OPTS and SOAPUI_CLASSPATH in shell scripts

Hi,

 

I use shell scripts bin/mockservicerunner.sh, bin/soapui.sh, and bin/testrunner.sh to start SoapUI (GUI and headless runners), and I often find myself wanting to add Java options or extra classpath entries to the java process that is executed at the end of the scripts, but that's not easy without patching those script files.

 

For example, to put logs of different mock services into separate directories, I would do something like this:

 

JAVA_OPTS="${JAVA_OPTS} -Dsoapui.logroot='${logDirForGivenService}'/"

 

In fact I would generalize that even further and write:

 

CUSTOM_JAVA_OPTS="-Dsoapui.logroot=`pwd`/"
JAVA_OPTS="${JAVA_OPTS} ${CUSTOM_JAVA_OPTS}"

 

Because this way I can have the SoapUI installation directory somewhere under /usr/local/, without having to copy it for each project I work on; plus by default SoapUI wouldn't try and log into a read-only installation directory.

 

For the same argument, the bin/ext dir is not good enough for me to add project-specific custom jars into, so I need a way to be able to customize SOAPUI_CLASSPATH.

 

Please make the scripts more customizable in those regards, thanks.

 

No RepliesBe the first to reply