Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
8a19e48e
Commit
8a19e48e
authored
Aug 04, 2013
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish and simplify spring bash script
parent
a9700c92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
46 deletions
+37
-46
spring
spring-boot-cli/src/main/scripts/spring
+37
-46
No files found.
spring-boot-cli/src/main/scripts/spring
View file @
8a19e48e
...
@@ -18,7 +18,6 @@ if $cygwin ; then
...
@@ -18,7 +18,6 @@ if $cygwin ; then
[
-n
"
$JAVA_HOME
"
]
&&
JAVA_HOME
=
`
cygpath
--unix
"
$JAVA_HOME
"
`
[
-n
"
$JAVA_HOME
"
]
&&
JAVA_HOME
=
`
cygpath
--unix
"
$JAVA_HOME
"
`
fi
fi
# Attempt to find JAVA_HOME if not already set
# Attempt to find JAVA_HOME if not already set
if
[
-z
"
${
JAVA_HOME
}
"
]
;
then
if
[
-z
"
${
JAVA_HOME
}
"
]
;
then
if
$darwin
;
then
if
$darwin
;
then
...
@@ -78,19 +77,11 @@ if [ ! -d "${SPRING_HOME}" ]; then
...
@@ -78,19 +77,11 @@ if [ ! -d "${SPRING_HOME}" ]; then
exit
2
exit
2
fi
fi
for
f
in
"
${
SPRING_HOME
}
"
/classes
"
${
SPRING_HOME
}
"
/
*
.jar
"
${
SPRING_HOME
}
"
/lib/
*
.jar
;
do
CLASSPATH
=
"
${
SPRING_HOME
}
/lib/*"
if
[
-f
$f
-o
-d
$f
]
;
then
if
[
"
${
CLASSPATH
}
"
==
""
]
;
then
CLASSPATH
=
"
${
f
}
"
else
CLASSPATH
=
"
${
CLASSPATH
}
"
:
"
${
f
}
"
fi
fi
done
if
$cygwin
;
then
if
$cygwin
;
then
SPRING_HOME
=
`
cygpath
--path
--mixed
"
$SPRING_HOME
"
`
SPRING_HOME
=
`
cygpath
--path
--mixed
"
$SPRING_HOME
"
`
CLASSPATH
=
`
cygpath
--path
--mixed
"
$CLASSPATH
"
`
CLASSPATH
=
`
cygpath
--path
--mixed
"
$CLASSPATH
"
`
fi
fi
"
${
JAVA_HOME
}
/bin/java
${
JAVA_OPTS
}
"
-cp
"
$CLASSPATH
"
org.springframework.boot.cli.SpringCli
$*
"
${
JAVA_HOME
}
/bin/java
"
${
JAVA_OPTS
}
-cp
"
$CLASSPATH
"
org.springframework.boot.cli.SpringCli
$*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment