Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
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
abdullh.alsoleman
Front-End
Commits
99114cd4
Commit
99114cd4
authored
Apr 29, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show more errors on missing jarsigner (#3626)
parent
055c919f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
10 deletions
+12
-10
android_workflow.dart
packages/flutter_tools/lib/src/android/android_workflow.dart
+2
-2
logger.dart
packages/flutter_tools/lib/src/base/logger.dart
+5
-5
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+1
-1
doctor.dart
packages/flutter_tools/lib/src/doctor.dart
+3
-1
globals.dart
packages/flutter_tools/lib/src/globals.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/android/android_workflow.dart
View file @
99114cd4
...
...
@@ -66,8 +66,6 @@ class AndroidWorkflow extends DoctorValidator implements Workflow {
}
if
(
javaVersion
!=
null
)
{
type
=
ValidationType
.
installed
;
messages
.
add
(
new
ValidationMessage
(
javaVersion
));
if
(
os
.
which
(
'jarsigner'
)
==
null
)
{
...
...
@@ -75,6 +73,8 @@ class AndroidWorkflow extends DoctorValidator implements Workflow {
'The jarsigner utility was not found; this is used to build Android APKs. You may need to install
\n
'
'or re-install the Java JDK:
$_kJdkDownload
.'
));
}
else
{
type
=
ValidationType
.
installed
;
}
}
else
{
messages
.
add
(
new
ValidationMessage
.
error
(
...
...
packages/flutter_tools/lib/src/base/logger.dart
View file @
99114cd4
...
...
@@ -20,7 +20,7 @@ abstract class Logger {
/// Display normal output of the command. This should be used for things like
/// progress messages, success messages, or just normal command output.
void
printStatus
(
String
message
);
void
printStatus
(
String
message
,
{
bool
emphasis:
false
}
);
/// Use this for verbose tracing output. Users can turn this output on in order
/// to help diagnose issues with the toolchain or with their setup.
...
...
@@ -55,11 +55,11 @@ class StdoutLogger extends Logger {
}
@override
void
printStatus
(
String
message
)
{
void
printStatus
(
String
message
,
{
bool
emphasis:
false
}
)
{
_status
?.
cancel
();
_status
=
null
;
print
(
message
);
print
(
emphasis
?
_terminal
.
writeBold
(
message
)
:
message
);
}
@override
...
...
@@ -99,7 +99,7 @@ class BufferLogger extends Logger {
void
printError
(
String
message
,
[
StackTrace
stackTrace
])
=>
_error
.
writeln
(
message
);
@override
void
printStatus
(
String
message
)
=>
_status
.
writeln
(
message
);
void
printStatus
(
String
message
,
{
bool
emphasis:
false
}
)
=>
_status
.
writeln
(
message
);
@override
void
printTrace
(
String
message
)
=>
_trace
.
writeln
(
message
);
...
...
@@ -127,7 +127,7 @@ class VerboseLogger extends Logger {
}
@override
void
printStatus
(
String
message
)
{
void
printStatus
(
String
message
,
{
bool
emphasis:
false
}
)
{
_emit
();
lastMessage
=
new
_LogMessage
(
_LogType
.
status
,
message
);
}
...
...
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
99114cd4
...
...
@@ -401,7 +401,7 @@ class NotifyingLogger extends Logger {
}
@override
void
printStatus
(
String
message
)
{
void
printStatus
(
String
message
,
{
bool
emphasis:
false
}
)
{
_messageController
.
add
(
new
LogMessage
(
'status'
,
message
));
}
...
...
packages/flutter_tools/lib/src/doctor.dart
View file @
99114cd4
...
...
@@ -113,7 +113,7 @@ class Doctor {
for
(
ValidationMessage
message
in
result
.
messages
)
{
if
(
message
.
isError
)
{
printStatus
(
' x
${message.message.replaceAll('\n', '\n ')}
'
);
printStatus
(
' x
${message.message.replaceAll('\n', '\n ')}
'
,
emphasis:
true
);
}
else
{
printStatus
(
'
$separator
${message.message.replaceAll('\n', '\n ')}
'
);
}
...
...
@@ -160,6 +160,8 @@ class ValidationResult {
final
String
statusInfo
;
final
List
<
ValidationMessage
>
messages
;
bool
get
isInstalled
=>
type
==
ValidationType
.
installed
;
String
get
leadingBox
{
if
(
type
==
ValidationType
.
missing
)
return
'[x]'
;
...
...
packages/flutter_tools/lib/src/globals.dart
View file @
99114cd4
...
...
@@ -25,7 +25,7 @@ void printError(String message, [StackTrace stackTrace]) => logger.printError(me
/// Display normal output of the command. This should be used for things like
/// progress messages, success messages, or just normal command output.
void
printStatus
(
String
message
)
=>
logger
.
printStatus
(
message
);
void
printStatus
(
String
message
,
{
bool
emphasis:
false
})
=>
logger
.
printStatus
(
message
,
emphasis:
emphasis
);
/// Use this for verbose tracing output. Users can turn this output on in order
/// to help diagnose issues with the toolchain or with their setup.
...
...
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