Fixed bug: on loading ant even could overwrite previously loaded event which lead...
[fedora-idea.git] / bin / inspect_diff.sh
blob9bbc5493eb7e6db51ec3c4d88c927937acc6c44f
1 #!/bin/sh
3 # ------------------------------------------------------
4 # IntelliJ IDEA Startup Script for Unix
5 # ------------------------------------------------------
8 # ---------------------------------------------------------------------
9 # Before you run IntelliJ IDEA specify the location of the
10 # JDK 1.5 installation directory which will be used for running IDEA
11 # ---------------------------------------------------------------------
12 if [ -z "$IDEA_JDK" ]; then
13 IDEA_JDK=$JDK_HOME
14 if [ -z "$IDEA_JDK" ]; then
15 echo ERROR: cannot start IntelliJ IDEA.
16 echo No JDK found to run IDEA. Please validate either IDEA_JDK or JDK_HOME points to valid JDK installation
20 #--------------------------------------------------------------------------
21 # Ensure the IDEA_HOME var for this script points to the
22 # home directory where IntelliJ IDEA is installed on your system.
24 IDEA_HOME=`dirname "$0"`/..
25 IDEA_BIN_HOME=`dirname "$0"`
27 export JAVA_HOME
28 export IDEA_HOME
30 if [ -n "$IDEA_PROPERTIES" ]; then
31 IDEA_PROPERTIES_PROPERTY=-Didea.properties.file=$IDEA_PROPERTIES
34 if [ -z "$IDEA_INSPECT_DIFF_CLASS_NAME" ]; then
35 IDEA_INSPECT_DIFF_CLASS_NAME="com.intellij.codeInspection.InspectionDiff"
38 if [ -z "$IDEA_VM_OPTIONS" ]; then
39 IDEA_VM_OPTIONS="$IDEA_HOME/bin/idea.vmoptions"
42 REQUIRED_JVM_ARGS="-Xbootclasspath/a:../lib/boot.jar $IDEA_PROPERTIES_PROPERTY $REQUIRED_JVM_ARGS"
43 JVM_ARGS=`tr '\n' ' ' < "$IDEA_VM_OPTIONS"`
44 JVM_ARGS="$JVM_ARGS $REQUIRED_JVM_ARGS"
46 CLASSPATH=../lib/bootstrap.jar
47 CLASSPATH=$CLASSPATH:../lib/openapi.jar
48 CLASSPATH=$CLASSPATH:../lib/util.jar
49 CLASSPATH=$CLASSPATH:../lib/idea.jar
50 CLASSPATH=$CLASSPATH:../lib/resources_en.jar
51 CLASSPATH=$CLASSPATH:../lib/jdom.jar
52 CLASSPATH=$CLASSPATH:../lib/log4j.jar
53 CLASSPATH=$CLASSPATH:../lib/extensions.jar
54 CLASSPATH=$CLASSPATH:../lib/trove4j.jar
55 CLASSPATH=$CLASSPATH:$IDEA_JDK/lib/tools.jar
56 CLASSPATH=$CLASSPATH:$IDEA_CLASSPATH
58 export CLASSPATH
60 LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
61 export LD_LIBRARY_PATH
63 cd "$IDEA_BIN_HOME"
64 exec $IDEA_JDK/bin/java $JVM_ARGS $IDEA_INSPECT_DIFF_CLASS_NAME $*