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
584a5629
Commit
584a5629
authored
Aug 15, 2019
by
Wanderrful
Committed by
Andy Wilkinson
Sep 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support multiple drives when running CLI using Cygwin
See gh-17872
parent
6daab5c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
spring
...ect/spring-boot-cli/src/main/executablecontent/bin/spring
+8
-6
No files found.
spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring
View file @
584a5629
...
...
@@ -18,7 +18,7 @@ case "$(uname)" in
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched.
if
$
{
cygwin
}
;
then
if
$
cygwin
;
then
[
-n
"
${
JAVA_HOME
}
"
]
&&
JAVA_HOME
=
$(
cygpath
--unix
"
${
JAVA_HOME
}
"
)
fi
...
...
@@ -99,12 +99,14 @@ if [ ! -d "${SPRING_HOME}" ]; then
exit
2
fi
CLASSPATH
=
.:
${
SPRING_HOME
}
/bin
if
[
-d
"
${
SPRING_HOME
}
/ext"
]
;
then
CLASSPATH
=
$CLASSPATH
:
${
SPRING_HOME
}
/ext
[[
$cygwin
]]
&&
SPRINGPATH
=
$(
cygpath
"
${
SPRING_HOME
}
"
)
||
SPRINGPATH
=
$SPRING_HOME
CLASSPATH
=
.:
${
SPRINGPATH
}
/bin
if
[
-d
"
${
SPRINGPATH
}
/ext"
]
;
then
CLASSPATH
=
$CLASSPATH
:
${
SPRINGPATH
}
/ext
fi
for
f
in
"
${
SPRING_HOME
}
"
/lib/
*
;
do
CLASSPATH
=
$CLASSPATH
:
$f
for
f
in
"
${
SPRINGPATH
}
"
/lib/
*
;
do
[[
$cygwin
]]
&&
LIBFILE
=
$(
cygpath
"
$f
"
)
||
LIBFILE
=
$f
CLASSPATH
=
$CLASSPATH
:
$LIBFILE
done
if
$cygwin
;
then
...
...
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