[Title] Modify executing IDE script
authorTaeyoung Son <taeyoung2.son@samsung.com>
Wed, 12 Jun 2013 05:54:32 +0000 (14:54 +0900)
committerTaeyoung Son <taeyoung2.son@samsung.com>
Wed, 12 Jun 2013 11:37:13 +0000 (20:37 +0900)
[Desc.]
[Issue]

Change-Id: I8512dfed6530396967337316a4c0d25a3d145cdf

org.tizen.base.feature/IDE.bat
org.tizen.base.feature/rootfiles_for_linux/startup.sh
org.tizen.base.feature/rootfiles_for_windows_x86/IDE.exe [changed mode: 0755->0644]
org.tizen.base.feature/rootfiles_for_windows_x86_64/IDE.exe [changed mode: 0755->0644]

index e741f48..ceadda0 100755 (executable)
@@ -1,22 +1,27 @@
-@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
index ab1b2ca..555f08a 100755 (executable)
@@ -2,9 +2,6 @@
 start_path=`pwd`
 
 IDE_PATH=`dirname $(readlink -f $0)`
-
-cd "${IDE_PATH}/.."
-
 export no_proxy=$no_proxy,"127.0.0.1"
 
 ## Execute IDE
old mode 100755 (executable)
new mode 100644 (file)
index a10d8df..ced9d00
Binary files a/org.tizen.base.feature/rootfiles_for_windows_x86/IDE.exe and b/org.tizen.base.feature/rootfiles_for_windows_x86/IDE.exe differ
old mode 100755 (executable)
new mode 100644 (file)
index cd9cce3..2d9cc16
Binary files a/org.tizen.base.feature/rootfiles_for_windows_x86_64/IDE.exe and b/org.tizen.base.feature/rootfiles_for_windows_x86_64/IDE.exe differ