Commit cb41333
Get OpenJDK from well-known paths, not just registry (#72)
Context: http://work.azdo.io/735565
Turns Out™ that certain anti-virus programs block or otherwise
mitigate access to various Windows Registry keys. (No idea which
anti-virus, or what the symptoms are; this is just What I've Heard.)
Reduce reliance on the registry by looking for the JDK within the
`%ProgramW6432%\Android\jdk\microsoft_dist_openjdk_*` directories,
in which the `*` suffix is a `System.Version`-parsable value, and
prefer the highest JDK found there.
The Registry value is still preferred, if set.1 parent 53ffdae commit cb41333
File tree
2 files changed
+32
-1
lines changed- src/Xamarin.Android.Tools.AndroidSdk/Sdks
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
166 | 197 | | |
167 | 198 | | |
168 | 199 | | |
| |||
0 commit comments