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
9b6c9eee
Commit
9b6c9eee
authored
Nov 01, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
5b66ffbb
7e8c5f59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
SpringApplicationRunner.java
...amework/boot/cli/command/run/SpringApplicationRunner.java
+6
-1
AetherGrapeEngine.java
...gframework/boot/cli/compiler/grape/AetherGrapeEngine.java
+19
-3
No files found.
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/SpringApplicationRunner.java
View file @
9b6c9eee
...
...
@@ -73,7 +73,9 @@ public class SpringApplicationRunner {
this
.
compiler
=
new
GroovyCompiler
(
configuration
);
int
level
=
configuration
.
getLogLevel
().
intValue
();
if
(
level
<=
Level
.
FINER
.
intValue
())
{
System
.
setProperty
(
"groovy.grape.report.downloads"
,
"true"
);
System
.
setProperty
(
"org.springframework.boot.cli.compiler.grape.ProgressReporter"
,
"detail"
);
System
.
setProperty
(
"trace"
,
"true"
);
}
else
if
(
level
<=
Level
.
FINE
.
intValue
())
{
...
...
@@ -82,6 +84,9 @@ public class SpringApplicationRunner {
else
if
(
level
==
Level
.
OFF
.
intValue
())
{
System
.
setProperty
(
"spring.main.banner-mode"
,
"OFF"
);
System
.
setProperty
(
"logging.level.ROOT"
,
"OFF"
);
System
.
setProperty
(
"org.springframework.boot.cli.compiler.grape.ProgressReporter"
,
"none"
);
}
}
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngine.java
View file @
9b6c9eee
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -93,10 +93,25 @@ public class AetherGrapeEngine implements GrapeEngine {
}
private
ProgressReporter
getProgressReporter
(
DefaultRepositorySystemSession
session
)
{
if
(
Boolean
.
getBoolean
(
"groovy.grape.report.downloads"
))
{
String
progressReporter
=
System
.
getProperty
(
"org.springframework.boot.cli.compiler.grape.ProgressReporter"
);
if
(
"detail"
.
equals
(
progressReporter
)
||
Boolean
.
getBoolean
(
"groovy.grape.report.downloads"
))
{
return
new
DetailedProgressReporter
(
session
,
System
.
out
);
}
return
new
SummaryProgressReporter
(
session
,
System
.
out
);
else
if
(
"none"
.
equals
(
progressReporter
))
{
return
new
ProgressReporter
()
{
@Override
public
void
finished
()
{
}
};
}
else
{
return
new
SummaryProgressReporter
(
session
,
System
.
out
);
}
}
@Override
...
...
@@ -340,4 +355,5 @@ public class AetherGrapeEngine implements GrapeEngine {
throw
new
UnsupportedOperationException
(
"Grabbing an endorsed module is not supported"
);
}
}
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