##############################################################################
#
# Oracle JDeveloper Launcher Configuration File 
# Copyright 2000-2011 Oracle Corporation.
# All Rights Reserved.
#
##############################################################################

IncludeConfFile ../../ide/bin/ide.conf

#
# Specify the JDeveloper launcher class.
#
SetMainClass oracle.ide.osgi.boot.JDeveloper

#
# Specify additional dropins directories that contain JARs for OSGi 
# bundles to be included in the product.  Multiple paths can be specified 
# separated by colons.  The paths can either be absolute, or relative to 
# jdeveloper/jdev/bin.  For more information, see the readme.txt under
# jdeveloper/dropins.
#
# AddVMOption -Dide.bundle.search.path=

#
# Directive SetJavaHome is not required by default, except for the base
# install, since the launcher will determine the JAVA_HOME.  On Windows
# it looks in ..\..\jdk, on UNIX it first looks in ../../jdk. If no JDK
# is found there, it looks in the PATH.
#
SetJavaHome @JAVA_HOME@

#
# MaxPermSize is required to run JDeveloper with Sun Microsystems virtual
# machine (-client and -server).  The default value is 64M, which isn't
# enough to run JDeveloper successfully.  With the default value, JDeveloper
# will end up running out of memory at some point in time.  For technical
# details, see: http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
# Increased to 12586510
AddVMOption  -XX:MaxPermSize=288M

#
# Replace heavyweight AWT controls with lightweight implementations.
#
AddVMOption  -Xbootclasspath/p:../lib/lwawt.jar

#
# Allow access to certain package private methods for web service apt work
# moved from launcher.sh as per bug 9761725
#
AddVMOption  -Xbootclasspath/p:../lib/apt-expose.jar

#
# Don't swap the entire JDev process out of memory when minimizing the main window.
#
AddVMOption  -Dsun.awt.keepWorkingSetOnMinimize=true

#
# Automatically dump heap on OutOfMemoryError.
# The heap dump is in HPROF binary format, and so it can be analyzed using 
# any tools that can import this format. Examples are jhat, NetBeans and YourKit.
# By default the heap dump is created in a file called java_pid<pid>.hprof in the 
# working directory of the VM.
#
AddVMOption  -XX:+HeapDumpOnOutOfMemoryError

#
# Option to enable OWSM policy types RM and Management on the policy configuration
# dialog for a web service.
# The same option, if set to true, also shows the policy configuration dialog for
# web service client as well.
# This flag exists so that when OWSM support for RM and Management policy
# types for WLS becomes available in the server module, removing this flag or 
# setting it to 'true' will bring those options in JDev WS policy configuration.
#
AddVMOption  -Doracle.jdeveloper.webservice.showAllOwsmPolicyTypes=false

#
# Controls the acess to OWSM policy property override dialog from the client policy
# configuration dialog.
#
AddVMOption  -Doracle.jdeveloper.webservice.hidePropertyOverride=false

#
# Prevents the desktop hanging when debugging JDev on Linux and hitting a breakpoint with a popup open.
# See Sun Bug: 6714678 (http://bugs.sun.com/view_bug.do?bug_id=6714678)
# Note: This only prevents the hang when debugging JDev itself. To prevent hanging with other
# projects add this flag to the java options for the process to be debugged.
#
AddVMOption  -Dsun.awt.disablegrab=true

#
# Uncomment this if you want to configure the set of features that 
# will be loaded on startup (the ide-core feature is always loaded
# on startup, but you can specify a comma-delimited list of additional 
# feature ids)
# AddVMOption   -Doracle.ide.startup.features=feature-id1,feature-id2

#
# JDeveloper uses its own caching clipboard that is more reliable
# than the system clipboard. This clipboard is synchronized with
# the system clipboard in an asynchronous way. In the unlikely case
# of problems with this synchronization uncomment the following
# line to let JDeveloper use the system clipboard directly.
#
# AddVMOption -Dide.nbclipboard.enabled=false

#
# Needed for PL/SQL debugging
#
AddVMOption  -Xbootclasspath/p:../../rdbms/jlib/ojdi.jar

# Sets the home of the patches directory
AddVMOption -Dide.patches.dir=jdev/lib/patches


# Sets the endorsed directory to match that of the 
# weblogic modules, required to pick up right version of -WS/-B apis

AddVMOption -Djava.endorsed.dirs=../../../oracle_common/modules/endorsed

# AddJavaLibFile ../../jdev/extensions/oracle.javafx/rt-macosx-x86_64/lib/jfxrt.jar
AddVMOption  -Duse.webview.on.mac=true
