From: Taeyoung Son Date: Fri, 13 Sep 2013 14:17:30 +0000 (+0900) Subject: [Title] Support library (directory type) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98140d8a293e5ae0d754388f8c0ccfebe8724bf7;p=sdk%2Ftools%2Fcli.git [Title] Support library (directory type) [Desc.] [Issue] Change-Id: Ie9c88d31cddf4dc41fbd05b2fe11dd99f29492ab --- diff --git a/org.tizen.cli/doc/install/bin_/common.bat b/org.tizen.cli/doc/install/bin_/common.bat new file mode 100755 index 0000000..b42318c --- /dev/null +++ b/org.tizen.cli/doc/install/bin_/common.bat @@ -0,0 +1,47 @@ +@echo off +set CLI_HOME=%1 +set CLI_NAME=%2 +set MAIN=%3 +set ARGS=%4 + +set OPT_LOGGING=-Dlog4j.configuration=log4j.xml +set OPT_PRG_NAME=-Dcli.name=%CLI_NAME% +set LIB_PATH=%CLI_HOME%\lib + +set classpath= +FOR /f "tokens=*" %%i IN ('dir %LIB_PATH% /B') DO ( call:CONCAT %LIB_PATH%\%%i ) + +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% %ARGS% + +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; diff --git a/org.tizen.cli/doc/install/bin_/web-build.bat b/org.tizen.cli/doc/install/bin_/web-build.bat old mode 100644 new mode 100755 index 4d358e2..df75219 --- a/org.tizen.cli/doc/install/bin_/web-build.bat +++ b/org.tizen.cli/doc/install/bin_/web-build.bat @@ -1,47 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/web-debug.bat b/org.tizen.cli/doc/install/bin_/web-debug.bat old mode 100644 new mode 100755 index 96d54bf..7d5c120 --- a/org.tizen.cli/doc/install/bin_/web-debug.bat +++ b/org.tizen.cli/doc/install/bin_/web-debug.bat @@ -1,47 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/web-gen.bat b/org.tizen.cli/doc/install/bin_/web-gen.bat old mode 100644 new mode 100755 index eac72ff..8ddbe2d --- a/org.tizen.cli/doc/install/bin_/web-gen.bat +++ b/org.tizen.cli/doc/install/bin_/web-gen.bat @@ -1,47 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/web-install.bat b/org.tizen.cli/doc/install/bin_/web-install.bat old mode 100644 new mode 100755 index bd31a15..ce2a900 --- a/org.tizen.cli/doc/install/bin_/web-install.bat +++ b/org.tizen.cli/doc/install/bin_/web-install.bat @@ -1,48 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/web-list.bat b/org.tizen.cli/doc/install/bin_/web-list.bat old mode 100644 new mode 100755 index 9f0cd0d..196a214 --- a/org.tizen.cli/doc/install/bin_/web-list.bat +++ b/org.tizen.cli/doc/install/bin_/web-list.bat @@ -1,47 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/web-packaging.bat b/org.tizen.cli/doc/install/bin_/web-packaging.bat old mode 100644 new mode 100755 index 0aa36b1..b301a3f --- a/org.tizen.cli/doc/install/bin_/web-packaging.bat +++ b/org.tizen.cli/doc/install/bin_/web-packaging.bat @@ -1,47 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/web-run.bat b/org.tizen.cli/doc/install/bin_/web-run.bat old mode 100644 new mode 100755 index 6add3c2..90909dc --- a/org.tizen.cli/doc/install/bin_/web-run.bat +++ b/org.tizen.cli/doc/install/bin_/web-run.bat @@ -1,47 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/web-signing.bat b/org.tizen.cli/doc/install/bin_/web-signing.bat old mode 100644 new mode 100755 index 3263de2..1194487 --- a/org.tizen.cli/doc/install/bin_/web-signing.bat +++ b/org.tizen.cli/doc/install/bin_/web-signing.bat @@ -1,47 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/web-template.bat b/org.tizen.cli/doc/install/bin_/web-template.bat index fb5ee21..9f0ed3e 100755 --- a/org.tizen.cli/doc/install/bin_/web-template.bat +++ b/org.tizen.cli/doc/install/bin_/web-template.bat @@ -1,47 +1,9 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/web-uninstall.bat b/org.tizen.cli/doc/install/bin_/web-uninstall.bat old mode 100644 new mode 100755 index 7d53754..1432fb5 --- a/org.tizen.cli/doc/install/bin_/web-uninstall.bat +++ b/org.tizen.cli/doc/install/bin_/web-uninstall.bat @@ -1,47 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/bin_/webtizen.bat b/org.tizen.cli/doc/install/bin_/webtizen.bat old mode 100644 new mode 100755 index f91f30f..714616b --- a/org.tizen.cli/doc/install/bin_/webtizen.bat +++ b/org.tizen.cli/doc/install/bin_/webtizen.bat @@ -108,8 +108,10 @@ REM command excute method :_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% diff --git a/org.tizen.cli/doc/install/native_bin/native-gen.bat b/org.tizen.cli/doc/install/native_bin/native-gen.bat old mode 100644 new mode 100755 index 4106a45..676e7a6 --- a/org.tizen.cli/doc/install/native_bin/native-gen.bat +++ b/org.tizen.cli/doc/install/native_bin/native-gen.bat @@ -1,48 +1,7 @@ @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% diff --git a/org.tizen.cli/doc/install/native_bin/native-packaging.bat b/org.tizen.cli/doc/install/native_bin/native-packaging.bat old mode 100644 new mode 100755 index 1d0eec3..8550cc4 --- a/org.tizen.cli/doc/install/native_bin/native-packaging.bat +++ b/org.tizen.cli/doc/install/native_bin/native-packaging.bat @@ -1,48 +1,7 @@ @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%