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
718859ad
Commit
718859ad
authored
Feb 24, 2017
by
Michael Goderbauer
Committed by
GitHub
Feb 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially revert #8332 (#8386)
The JDK doesn't put `javac` in the PATH on Windows :(
parent
a002e720
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
android_workflow.dart
packages/flutter_tools/lib/src/android/android_workflow.dart
+9
-6
No files found.
packages/flutter_tools/lib/src/android/android_workflow.dart
View file @
718859ad
...
...
@@ -70,11 +70,14 @@ class AndroidWorkflow extends DoctorValidator implements Workflow {
String
javaVersion
;
try
{
printTrace
(
'javac -version'
);
ProcessResult
result
=
processManager
.
runSync
(<
String
>[
'javac'
,
'-version'
]);
if
(
result
.
exitCode
==
0
)
javaVersion
=
result
.
stderr
.
split
(
'
\n
'
)[
0
];
printTrace
(
'java -version'
);
ProcessResult
result
=
processManager
.
runSync
(<
String
>[
'java'
,
'-version'
]);
if
(
result
.
exitCode
==
0
)
{
javaVersion
=
result
.
stderr
;
List
<
String
>
versionLines
=
javaVersion
.
split
(
'
\n
'
);
javaVersion
=
versionLines
.
length
>=
2
?
versionLines
[
1
]
:
versionLines
[
0
];
}
}
catch
(
error
)
{
}
...
...
@@ -83,7 +86,7 @@ class AndroidWorkflow extends DoctorValidator implements Workflow {
'No Java Development Kit (JDK) found; you can download the JDK from
$_kJdkDownload
.'
));
}
else
{
messages
.
add
(
new
ValidationMessage
(
'Java Development Kit (JDK) found:
$javaVersion
'
));
messages
.
add
(
new
ValidationMessage
(
javaVersion
));
type
=
ValidationType
.
installed
;
}
}
else
{
...
...
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