FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
basic-java-11-quickstart/bin/Application.sh at main · java-cli-apps/basic-java-11-quickstart · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
java-cli-apps
/
basic-java-11-quickstart
Public archive
forked from
java-cli-apps/basic-java-22-quickstart
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
basic-java-11-quickstart
/
bin
/
Application.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
23 lines (18 loc) · 459 Bytes
Breadcrumbs
basic-java-11-quickstart
/
bin
/
Application.sh
Copy path
File metadata and controls
executable file
·
23 lines (18 loc) · 459 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!
/usr/bin/env bash
get_absolute_path
() {
case
"
$1
"
in
/
*
) path=
"
$1
"
;;
*
) path=
"
$(
pwd
)
/
$1
"
;;
esac
realpath
"
${path}
"
}
get_application_dir
() {
dirname
"
$(
dirname
"
$(
get_absolute_path
"
$1
"
)
"
)
"
}
get_application_file
() {
startup_script=
$(
basename
"
$1
"
)
echo
"
${startup_script
/
sh
/
java}
"
}
app_dir=
$(
get_application_dir
"
$0
"
)
app_file=
$(
get_application_file
"
$0
"
)
APP_DIR=
${app_dir}
"
${app_dir}
/src/
${app_file}
"
"
$@
"
Back
|
FazBrowse Home
|
New Git URL