javaee schemas from ejb-3_0-pfd-spec
[fedora-idea.git] / bin / idea.sh
blobaadf18c7264e07585517da47b04b391811361030
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 or higher 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_MAIN_CLASS_NAME" ]; then
35 IDEA_MAIN_CLASS_NAME="com.intellij.idea.Main"
38 REQUIRED_JVM_ARGS="-Xbootclasspath/p:../lib/boot.jar: $IDEA_PROPERTIES_PROPERTY"
39 JVM_ARGS=`tr '\n' ' ' < "$IDEA_HOME/bin/idea.vmoptions"`
40 JVM_ARGS="$JVM_ARGS $REQUIRED_JVM_ARGS"
42 CLASSPATH=../lib/idea.jar
43 CLASSPATH=$CLASSPATH:../lib/openapi.jar
44 CLASSPATH=$CLASSPATH:../lib/jdom.jar
45 CLASSPATH=$CLASSPATH:../lib/log4j.jar
46 CLASSPATH=$CLASSPATH:../lib/extensions.jar
47 CLASSPATH=$CLASSPATH:$IDEA_JDK/lib/tools.jar
48 CLASSPATH=$CLASSPATH:$IDEA_CLASSPATH
50 export CLASSPATH
52 LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
53 export LD_LIBRARY_PATH
55 cd "$IDEA_BIN_HOME"
56 exec $IDEA_JDK/bin/java $JVM_ARGS $IDEA_MAIN_CLASS_NAME $*