File tree Expand file tree Collapse file tree 11 files changed +29
-29
lines changed Expand file tree Collapse file tree 11 files changed +29
-29
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- DIR= ` dirname $0 `
3
- $DIR /launch_linux.sh org.javacs.debug.JavaDebugServer $@
2
+ DIST_DIR= $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
3
+ ${DIST_DIR} /launch_linux.sh org.javacs.debug.JavaDebugServer $@
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- DIR= ` dirname $0 `
3
- $DIR /launch_mac.sh org.javacs.debug.JavaDebugServer $@
2
+ DIST_DIR= $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
3
+ ${DIST_DIR} /launch_mac.sh org.javacs.debug.JavaDebugServer $@
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- DIR= ` dirname $0 `
3
- $DIR /launch_windows.sh org.javacs.debug.JavaDebugServer $@
2
+ DIST_DIR= $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
3
+ ${DIST_DIR} /launch_windows.sh org.javacs.debug.JavaDebugServer $@
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ OS="unknown"
4
4
if which -s uname; then
5
5
OS=$( uname | tr ' [:upper:]' ' [:lower:]' )
6
6
fi
7
- SCRIPTS_DIR =$( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
7
+ DIST_DIR =$( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
8
8
if [[ " ${OS} " == ' darwin' ]]; then
9
- ${SCRIPTS_DIR } /debug_adapter_mac.sh $@
9
+ ${DIST_DIR } /debug_adapter_mac.sh $@
10
10
elif [[ " ${OS} " == ' linux' ]]; then
11
- ${SCRIPTS_DIR } /debug_adapter_linux.sh $@
11
+ ${DIST_DIR } /debug_adapter_linux.sh $@
12
12
else
13
- ${SCRIPTS_DIR } /debug_adapter_windows.sh $@
13
+ ${DIST_DIR } /debug_adapter_windows.sh $@
14
14
fi
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ OS="unknown"
4
4
if which -s uname; then
5
5
OS=$( uname | tr ' [:upper:]' ' [:lower:]' )
6
6
fi
7
- SCRIPTS_DIR =$( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
7
+ DIST_DIR =$( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
8
8
if [[ " ${OS} " == ' darwin' ]]; then
9
- ${SCRIPTS_DIR } /lang_server_mac.sh $@
9
+ ${DIST_DIR } /lang_server_mac.sh $@
10
10
elif [[ " ${OS} " == ' linux' ]]; then
11
- ${SCRIPTS_DIR } /lang_server_linux.sh $@
11
+ ${DIST_DIR } /lang_server_linux.sh $@
12
12
else
13
- ${SCRIPTS_DIR } /lang_server_windows.sh $@
13
+ ${DIST_DIR } /lang_server_windows.sh $@
14
14
fi
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- DIR= ` dirname $0 `
3
- $DIR /launch_linux.sh org.javacs.Main $@
2
+ DIST_DIR= $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
3
+ ${DIST_DIR} /launch_linux.sh org.javacs.Main $@
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- DIR= ` dirname $0 `
3
- $DIR /launch_mac.sh org.javacs.Main $@
2
+ DIST_DIR= $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
3
+ ${DIST_DIR} /launch_mac.sh org.javacs.Main $@
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- DIR= ` dirname $0 `
3
- $DIR /launch_windows.sh org.javacs.Main $@
2
+ DIST_DIR= $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
3
+ ${DIST_DIR} /launch_windows.sh org.javacs.Main $@
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ JLINK_VM_OPTIONS="\
8
8
--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED \
9
9
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
10
10
--add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"
11
- DIR= ` dirname $0 `
12
- CLASSPATH_OPTIONS=" -classpath $DIR /classpath/gson-2.8.9.jar:$DIR /classpath/protobuf-java-3.19.3.jar:$DIR /classpath/java-language-server.jar"
13
- $DIR /linux/bin/java $JLINK_VM_OPTIONS $CLASSPATH_OPTIONS $@
11
+ DIST_DIR= $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
12
+ CLASSPATH_OPTIONS=" -classpath ${DIST_DIR} /classpath/gson-2.8.9.jar:${DIST_DIR} /classpath/protobuf-java-3.19.3.jar:${DIST_DIR} /classpath/java-language-server.jar"
13
+ ${DIST_DIR} /linux/bin/java $JLINK_VM_OPTIONS $CLASSPATH_OPTIONS $@
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ JLINK_VM_OPTIONS="\
8
8
--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED \
9
9
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
10
10
--add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"
11
- DIR= ` dirname $0 `
12
- CLASSPATH_OPTIONS=" -classpath $DIR /classpath/gson-2.8.9.jar:$DIR /classpath/protobuf-java-3.19.3.jar:$DIR /classpath/java-language-server.jar"
13
- $DIR /mac/bin/java $JLINK_VM_OPTIONS $CLASSPATH_OPTIONS $@
11
+ DIST_DIR= $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
12
+ CLASSPATH_OPTIONS=" -classpath ${DIST_DIR} /classpath/gson-2.8.9.jar:${DIST_DIR} /classpath/protobuf-java-3.19.3.jar:${DIST_DIR} /classpath/java-language-server.jar"
13
+ ${DIST_DIR} /mac/bin/java $JLINK_VM_OPTIONS $CLASSPATH_OPTIONS $@
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ JLINK_VM_OPTIONS="\
8
8
--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED \
9
9
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
10
10
--add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"
11
- DIR= ` dirname $0 `
12
- CLASSPATH_OPTIONS=" -classpath $DIR /classpath/gson-2.8.9.jar;$DIR /classpath/protobuf-java-3.19.3.jar;$DIR /classpath/java-language-server.jar"
13
- $DIR /windows/bin/java $JLINK_VM_OPTIONS $CLASSPATH_OPTIONS $@
11
+ DIST_DIR= $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
12
+ CLASSPATH_OPTIONS=" -classpath ${DIST_DIR} /classpath/gson-2.8.9.jar;${DIST_DIR} /classpath/protobuf-java-3.19.3.jar;${DIST_DIR} /classpath/java-language-server.jar"
13
+ ${DIST_DIR} /windows/bin/java $JLINK_VM_OPTIONS $CLASSPATH_OPTIONS $@
You can’t perform that action at this time.
0 commit comments