Merge pull request #155 from attakei/patches/lock_java_file_encoding
Set "UTF-8" to java file.encoding for android update command explicitly
This commit is contained in:
commit
89f8f92d82
1 changed files with 3 additions and 1 deletions
|
@ -301,10 +301,12 @@ class TargetAndroid(Target):
|
||||||
|
|
||||||
def _android_update_sdk(self, packages):
|
def _android_update_sdk(self, packages):
|
||||||
from buildozer.libs.pexpect import EOF
|
from buildozer.libs.pexpect import EOF
|
||||||
|
java_tool_options = environ.get('JAVA_TOOL_OPTIONS', '')
|
||||||
child = self.buildozer.cmd_expect('{} update sdk -u -a -t {}'.format(
|
child = self.buildozer.cmd_expect('{} update sdk -u -a -t {}'.format(
|
||||||
self.android_cmd, packages,
|
self.android_cmd, packages,
|
||||||
cwd=self.buildozer.global_platform_dir),
|
cwd=self.buildozer.global_platform_dir),
|
||||||
timeout=None)
|
timeout=None,
|
||||||
|
env={'JAVA_TOOL_OPTIONS': java_tool_options + ' -Dfile.encoding=UTF-8'})
|
||||||
while True:
|
while True:
|
||||||
index = child.expect([EOF, '[y/n]: '])
|
index = child.expect([EOF, '[y/n]: '])
|
||||||
if index == 0:
|
if index == 0:
|
||||||
|
|
Loading…
Reference in a new issue