aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarshall Greenblatt <magreenblatt@gmail.com>2015-08-28 15:07:35 -0400
committerMarshall Greenblatt <magreenblatt@gmail.com>2015-08-28 15:07:35 -0400
commit8e7fc7e3d4934ffbb7c080c129b264e6db963ea9 (patch)
treecb73b3dfbfcd0f47ede08002f54d883b8f249643 /tools
parent4f43a29f243fe81a3705cb8cb96d91c5cc5e762e (diff)
downloadjcef-8e7fc7e3d4934ffbb7c080c129b264e6db963ea9.tar.gz
Windows: Fix variable manipulation errors in run.bat
Diffstat (limited to 'tools')
-rw-r--r--tools/run.bat21
1 files changed, 16 insertions, 5 deletions
diff --git a/tools/run.bat b/tools/run.bat
index 007126d..7e737da 100644
--- a/tools/run.bat
+++ b/tools/run.bat
@@ -1,4 +1,8 @@
@echo off
+:: Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
+:: reserved. Use of this source code is governed by a BSD-style license
+:: that can be found in the LICENSE file.
+
set RC=
setlocal
cd ..
@@ -21,17 +25,24 @@ set ERRORLEVEL=1
goto end
)
-set OUT_PATH=".\out\%1"
-set LIB_PATH="%OUT_PATH%\%2"
-set CLS_PATH=".\third_party\jogamp\jar\*;%OUT_PATH%"
-set RUN_TYPE="%3"
+set OUT_PATH=.\out\%~1
+set LIB_PATH=%OUT_PATH%\%~2
+set CLS_PATH=.\third_party\jogamp\jar\*;%OUT_PATH%
+set RUN_TYPE=%~3
:: Remove the first three params (%1, %2 and %3) and pass the rest to java.
+set RESTVAR=
+shift
shift
shift
+:loop1
+if "%1"=="" goto after_loop
+set RESTVAR=%RESTVAR% %1
shift
+goto loop1
+:after_loop
-java -cp %CLS_PATH% -Djava.library.path=%LIB_PATH% tests.%RUN_TYPE%.MainFrame %*
+java -cp %CLS_PATH% -Djava.library.path=%LIB_PATH% tests.%RUN_TYPE%.MainFrame %RESTVAR%
:end
endlocal & set RC=%ERRORLEVEL%