-@echo off
+@echo on
-:: delims is a TAB followed by a space
-set key=TIZEN_SDK_INSTALLED_PATH
-for /f "tokens=3* delims= " %%i in ('reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Local AppData"') do set sdk_conf_path=%%j
-for /f "tokens=1,2 delims==" %%i in (%sdk_conf_path%\tizen-sdk-data\tizensdkpath) do @if %%i==%key% (set sdk_path=%%j)
-set ide_path=%sdk_path%\ide
-set tools_path=%ide_path%\resources\tools
-cd /D %ide_path%
+::set ide_path=%~dp0
+set ide_path=%CD%
+set sdk_info_path=%ide_path%\..\sdk.info
-IF EXIST %tools_path%\UpdateAlram.jar (
- java -jar %tools_path%\UpdateAlarm.jar
+if exist %sdk_info_path% (
+ set key=TIZEN_SDK_INSTALLED_PATH
+ for /f "tokens=1,2 delims==" %%i in (%sdk_info_path%) do @if %%i==%key% (set sdk_path=%%j)
+) else (
+ set sdk_path=%ide_path%\..\
)
-set Path=%sdk_path%\tools\mingw\bin;%sdk_path%\tools\mingw\msys\1.0\bin;%Path%
+echo ide path : %ide_path%
+echo sdk path : %sdk_path%
cd /D %ide_path%
+
+set Path=%sdk_path%\tools\mingw\bin;%sdk_path%\tools\mingw\msys\1.0\bin;%Path%
+
if exist %ide_path%\init (
set eclipse_options=-clean
+) else (
+ set eclipse_options=
)
-eclipse.exe %eclipse_options%
+eclipse.exe %eclipse_options%
\ No newline at end of file