From 229c40f47794e3ebff8f17009abcd638c4f2607d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Mon, 7 Jul 2014 12:15:18 -0400 Subject: [PATCH] android: delete the Android project folder prior to generating code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/android_platform.nit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/android_platform.nit b/src/android_platform.nit index 41553eb..ff8ca4c 100644 --- a/src/android_platform.nit +++ b/src/android_platform.nit @@ -66,6 +66,10 @@ class AndroidToolchain var app_version = project.version if app_version == null then app_version = "1.0" + # Clear the previous android project, so there is no "existing project warning" + # or conflict between Java files of different projects + if android_project_root.file_exists then android_project_root.rmdir + var args = ["android", "-s", "create", "project", "--name", short_project_name, -- 1.7.9.5