aboutsummaryrefslogtreecommitdiffstats
path: root/lint/cli/etc/lint.bat
diff options
context:
space:
mode:
Diffstat (limited to 'lint/cli/etc/lint.bat')
-rwxr-xr-xlint/cli/etc/lint.bat5
1 files changed, 4 insertions, 1 deletions
diff --git a/lint/cli/etc/lint.bat b/lint/cli/etc/lint.bat
index 41e52d8..1189ef1 100755
--- a/lint/cli/etc/lint.bat
+++ b/lint/cli/etc/lint.bat
@@ -20,6 +20,9 @@ rem Set up prog to be the path of this script, including following symlinks,
rem and set up progdir to be the fully-qualified pathname of its directory.
set prog=%~f0
+rem Grab current directory before we change it
+set work_dir="%cd%"
+
rem Change current directory and drive to where the script is, to avoid
rem issues with directories containing whitespaces.
cd /d %~dp0
@@ -51,5 +54,5 @@ if debug NEQ "%1" goto NoDebug
set jarpath=%frameworkdir%%jarfile%
set javaextdirs=%frameworkdir%
-call %java_exe% %java_debug% -Dcom.android.tools.lint.bindir=%prog_dir% -classpath "%jarpath%" com.android.tools.lint.Main %*
+call %java_exe% %java_debug% -Dcom.android.tools.lint.bindir=%prog_dir% -Dcom.android.tools.lint.workdir=%work_dir% -classpath "%jarpath%" com.android.tools.lint.Main %*