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
064fee38
Commit
064fee38
authored
Dec 05, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting
parent
8efdffbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ProjectGenerator.java
...ringframework/boot/cli/command/init/ProjectGenerator.java
+7
-5
No files found.
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java
View file @
064fee38
...
...
@@ -55,8 +55,8 @@ class ProjectGenerator {
}
else
{
Log
.
info
(
"Could not extract '"
+
response
.
getContentType
()
+
"'"
);
fileName
=
response
.
getFileName
();
// Use value from the server since we
// can't extract it
// Use value from the server since we can't extract it
fileName
=
response
.
getFileName
();
}
}
if
(
fileName
==
null
)
{
...
...
@@ -71,12 +71,14 @@ class ProjectGenerator {
/**
* Detect if the project should be extracted.
*/
private
boolean
shouldExtract
(
ProjectGenerationRequest
request
,
ProjectGenerationResponse
response
)
{
private
boolean
shouldExtract
(
ProjectGenerationRequest
request
,
ProjectGenerationResponse
response
)
{
if
(
request
.
isExtract
())
{
return
true
;
}
// An explicit name has been provided for an archive and there is no extension in it
if
(
isZipArchive
(
response
)
&&
request
.
getOutput
()
!=
null
&&
!
request
.
getOutput
().
contains
(
"."
))
{
// explicit name hasn't been provided for an archive and there is no extension
if
(
isZipArchive
(
response
)
&&
request
.
getOutput
()
!=
null
&&
!
request
.
getOutput
().
contains
(
"."
))
{
return
true
;
}
return
false
;
...
...
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