From: gyeongseok.seo Date: Wed, 12 Jun 2013 03:59:18 +0000 (+0900) Subject: [Title] Fixed cli's batch file, Installer no more using window regestry X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c6ea1993ddccb52f709b559ea9efb9966dbd89f;p=sdk%2Ftools%2Fcli.git [Title] Fixed cli's batch file, Installer no more using window regestry [Desc.] [Issue] Change-Id: Id617e426c88f4f82e6f88c588693573b65139394 --- diff --git a/org.tizen.cli/doc/install/bin_/web-build.bat b/org.tizen.cli/doc/install/bin_/web-build.bat index d9e9826..4d358e2 100644 --- a/org.tizen.cli/doc/install/bin_/web-build.bat +++ b/org.tizen.cli/doc/install/bin_/web-build.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.web.build.Main diff --git a/org.tizen.cli/doc/install/bin_/web-debug.bat b/org.tizen.cli/doc/install/bin_/web-debug.bat index dc1a859..96d54bf 100644 --- a/org.tizen.cli/doc/install/bin_/web-debug.bat +++ b/org.tizen.cli/doc/install/bin_/web-debug.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.debug.Main diff --git a/org.tizen.cli/doc/install/bin_/web-gen.bat b/org.tizen.cli/doc/install/bin_/web-gen.bat index 4564693..eac72ff 100644 --- a/org.tizen.cli/doc/install/bin_/web-gen.bat +++ b/org.tizen.cli/doc/install/bin_/web-gen.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.gen.Main diff --git a/org.tizen.cli/doc/install/bin_/web-install.bat b/org.tizen.cli/doc/install/bin_/web-install.bat index 1fbcf52..bd31a15 100644 --- a/org.tizen.cli/doc/install/bin_/web-install.bat +++ b/org.tizen.cli/doc/install/bin_/web-install.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.install.Main diff --git a/org.tizen.cli/doc/install/bin_/web-list.bat b/org.tizen.cli/doc/install/bin_/web-list.bat index a50ce2d..9f0cd0d 100644 --- a/org.tizen.cli/doc/install/bin_/web-list.bat +++ b/org.tizen.cli/doc/install/bin_/web-list.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.query.Main diff --git a/org.tizen.cli/doc/install/bin_/web-packaging.bat b/org.tizen.cli/doc/install/bin_/web-packaging.bat index 218fd1b..0aa36b1 100644 --- a/org.tizen.cli/doc/install/bin_/web-packaging.bat +++ b/org.tizen.cli/doc/install/bin_/web-packaging.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.wgt.Main diff --git a/org.tizen.cli/doc/install/bin_/web-run.bat b/org.tizen.cli/doc/install/bin_/web-run.bat index ca0df3b..6add3c2 100644 --- a/org.tizen.cli/doc/install/bin_/web-run.bat +++ b/org.tizen.cli/doc/install/bin_/web-run.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.run.Main diff --git a/org.tizen.cli/doc/install/bin_/web-signing.bat b/org.tizen.cli/doc/install/bin_/web-signing.bat index a794c70..3263de2 100644 --- a/org.tizen.cli/doc/install/bin_/web-signing.bat +++ b/org.tizen.cli/doc/install/bin_/web-signing.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.sign.Main diff --git a/org.tizen.cli/doc/install/bin_/web-template.bat b/org.tizen.cli/doc/install/bin_/web-template.bat index 39bf039..fb5ee21 100755 --- a/org.tizen.cli/doc/install/bin_/web-template.bat +++ b/org.tizen.cli/doc/install/bin_/web-template.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.template.ClientMain diff --git a/org.tizen.cli/doc/install/bin_/web-uninstall.bat b/org.tizen.cli/doc/install/bin_/web-uninstall.bat index 20edfa7..7d53754 100644 --- a/org.tizen.cli/doc/install/bin_/web-uninstall.bat +++ b/org.tizen.cli/doc/install/bin_/web-uninstall.bat @@ -1,19 +1,6 @@ @echo off -set SCRIPT=%0 -:: delims is a TAB followed by a space -set KEY=TIZEN_SDK_INSTALLED_PATH - -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set MAIN=org.tizen.cli.exec.uninstall.Main diff --git a/org.tizen.cli/doc/install/bin_/webtizen.bat b/org.tizen.cli/doc/install/bin_/webtizen.bat index 40833c5..f91f30f 100644 --- a/org.tizen.cli/doc/install/bin_/webtizen.bat +++ b/org.tizen.cli/doc/install/bin_/webtizen.bat @@ -8,16 +8,7 @@ set CMDLINE= set KEY=TIZEN_SDK_INSTALLED_PATH set sdk_conf_path= -REM find sdk path -set rkey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -set rval="Local AppData" -FOR /f "tokens=3*" %%a IN ('reg query %rkey% /v %rval%') DO ( - set sdk_conf_path=%%b -) - -REM find cli path -FOR /f "tokens=1,2 delims==" %%i IN ('type "%sdk_conf_path%\tizen-sdk-data\tizensdkpath"') DO IF %%i==%KEY% (set SDK_PATH=%%j) -set CLI_HOME=%SDK_PATH%\tools\ide +set CLI_HOME=%~dp0\.. set OPT_TRACE= set OPT_LOGGING=-Dlog4j.configuration=log4j.xml