Restore LOCAL_PATH in sdkmanager/app/Android.mk
The following line pollutes the value of LOCAL_PATH:
include $(call all-makefiles-under,$(LOCAL_PATH))
Therefore, we need to keep around the original value of LOCAL_PATH so
that we can restore it before calling find-all-java-files-under.
Change-Id: I0e33a938e6259d4b37425040a9231991778acc84
diff --git a/sdkmanager/app/Android.mk b/sdkmanager/app/Android.mk
index f72c401..428b8a0 100644
--- a/sdkmanager/app/Android.mk
+++ b/sdkmanager/app/Android.mk
@@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-LOCAL_PATH := $(call my-dir)
+ORIG_LOCAL_PATH := $(call my-dir)
+LOCAL_PATH := $(ORIG_LOCAL_PATH)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
@@ -49,6 +50,7 @@
# ----- TESTS ------
# Copyright (C) 2011 The Android Open Source Project
+LOCAL_PATH := $(ORIG_LOCAL_PATH)
include $(CLEAR_VARS)
# Only compile source java files in this lib.