diff options
Diffstat (limited to 'dev-util/visualvm/files/visualvm.sh')
-rw-r--r-- | dev-util/visualvm/files/visualvm.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-util/visualvm/files/visualvm.sh b/dev-util/visualvm/files/visualvm.sh new file mode 100644 index 000000000000..d26306a9ac37 --- /dev/null +++ b/dev-util/visualvm/files/visualvm.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# source the configuration file +source /etc/visualvm/visualvm.conf + +# if visualvm userdir does not exist, create it and put in the default module configuration +# so that user does not face warning that some (unneeded) modules were not found +if [ ! -e "${visualvm_default_userdir}" ] ; then + mkdir -p "${visualvm_default_userdir}/config/Modules" + cp /usr/share/visualvm/config/* "${visualvm_default_userdir}/config/Modules/" +fi + +# launch visualvm +/usr/share/netbeans-platform-8.0/lib/nbexec --jdkhome ${visualvm_jdkhome} --userdir ${visualvm_default_userdir} \ + --branding visualvm --clusters /usr/share/visualvm/cluster:/usr/share/netbeans-platform-8.0:/usr/share/netbeans-profiler-8.0 \ + ${visualvm_default_options} |