diff options
author | Marshall Greenblatt <magreenblatt@gmail.com> | 2015-08-28 15:07:35 -0400 |
---|---|---|
committer | Marshall Greenblatt <magreenblatt@gmail.com> | 2015-08-28 15:07:35 -0400 |
commit | 8e7fc7e3d4934ffbb7c080c129b264e6db963ea9 (patch) | |
tree | cb73b3dfbfcd0f47ede08002f54d883b8f249643 /tools | |
parent | 4f43a29f243fe81a3705cb8cb96d91c5cc5e762e (diff) | |
download | jcef-8e7fc7e3d4934ffbb7c080c129b264e6db963ea9.tar.gz |
Windows: Fix variable manipulation errors in run.bat
Diffstat (limited to 'tools')
-rw-r--r-- | tools/run.bat | 21 |
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%
|