--- /dev/null
+@echo off\r
+set CLI_HOME=%1\r
+set CLI_NAME=%2\r
+set MAIN=%3\r
+set ARGS=%4\r
+\r
+set OPT_LOGGING=-Dlog4j.configuration=log4j.xml\r
+set OPT_PRG_NAME=-Dcli.name=%CLI_NAME%\r
+set LIB_PATH=%CLI_HOME%\lib\r
+\r
+set classpath=\r
+FOR /f "tokens=*" %%i IN ('dir %LIB_PATH% /B') DO ( call:CONCAT %LIB_PATH%\%%i )\r
+\r
+set READ_ARG="n"\r
+\r
+FOR %%W IN ( %* ) DO ( call:parseArg %%W )\r
+\r
+set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%\r
+set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %ARGS%\r
+\r
+IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )\r
+\r
+%EXEC%\r
+goto:eof\r
+\r
+:parseArg\r
+ IF "y" == %READ_ARG% goto SET_LOGGING\r
+\r
+:SECOND_STEP\r
+ IF "%~1" == "--log" goto SET_READY\r
+ IF "%~1" == "-l" goto SET_READY\r
+:END_STEP\r
+goto:eof\r
+\r
+:SET_LOGGING\r
+ set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml\r
+ IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true\r
+ set READ_ARG="n"\r
+\r
+ goto SECOND_STEP\r
+\r
+:SET_READY\r
+ set READ_ARG="y"\r
+ goto END_STEP\r
+\r
+:CONCAT\r
+ set classpath=%classpath%%1;\r
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.web.build.Main
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.debug.Main
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.gen.Main
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.install.Main
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.query.Main
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.wgt.Main
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.run.Main
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.sign.Main
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.template.ClientMain
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME% -Dtizen.template.realm=file:///%CLI_HOME%\realm\config.json
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
+set OPT_TRACE=-Dtizen.template.realm=file:///%CLI_HOME%\realm\config.json
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.uninstall.Main
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG="n"
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF "y" == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF "%~1" == "--log" goto SET_READY
- IF "%~1" == "-l" goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF "%~1" == "trace" set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG="n"
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG="y"
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
:_run_command
FOR %%W IN ( %CMDLINE% ) DO ( call:parseArg %%W )
+ set LIB_PATH=%CLI_HOME%\lib
+
set classpath=
- FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
+ FOR /f "tokens=*" %%i IN ('dir %LIB_PATH% /B') DO ( call:CONCAT %LIB_PATH%\%%i )
set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %CMDLINE%
@echo off
-set SCRIPT=%0
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.gen.NativeMain
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG=n
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF y == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF %1 == --log goto SET_READY
- IF %1 == -l goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF %1 == trace set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG=n
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG=y
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%
@echo off
-set SCRIPT=%0
-
set CLI_HOME=%~dp0\..
-
+set SCRIPT=%0
set MAIN=org.tizen.cli.exec.pack.NativeMain
+set ARGS=%*
-set classpath=
-FOR %%i IN ("%CLI_HOME%\lib\*.jar") DO ( call:CONCAT %%i )
-
-set OPT_TRACE=
-set OPT_LOGGING=-Dlog4j.configuration=log4j.xml
-set OPT_PRG_NAME=-Dcli.name=%SCRIPT%
-
-set READ_ARG=n
-
-FOR %%W IN ( %* ) DO ( call:parseArg %%W )
-
-set OPT=%OPT_TRACE% %OPT_LOGGING% %OPT_PRG_NAME%
-set EXEC=java -cp %CLI_HOME%\conf;%classpath% %OPT% %MAIN% %*
-
-IF NOT "" == "%OPT_TRACE%" ( echo Command :%EXEC% )
-
-%EXEC%
-goto:eof
-
-:parseArg
- IF y == %READ_ARG% goto SET_LOGGING
-
-:SECOND_STEP
- IF %1 == --log goto SET_READY
- IF %1 == -l goto SET_READY
-:END_STEP
-goto:eof
-
-:SET_LOGGING
- set OPT_LOGGING=-Dlog4j.configuration=log4j-%~1.xml
- IF %1 == trace set OPT_TRACE=-Dlog4j.debug=true
- set READ_ARG=n
-
- goto SECOND_STEP
-
-:SET_READY
- set READ_ARG=y
- goto END_STEP
-
-:CONCAT
- set classpath=%classpath%%1;
+common.bat %CLI_HOME% %SCRIPT% %MAIN% %ARGS%