Eclipse + Android Portable Launcher (AutoIt)
#cs --------------------------------------
# | Eclipse + Android Portable |
# | Written by Ad@m |
# | https://gist.github.com/gists/985260 |
#ce --------------------------------------
#NoTrayIcon ;Disable tray icon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=appicon.ico
#AutoIt3Wrapper_Outfile=..\..\EclipseAndroidPortable.exe
#AutoIt3Wrapper_UseX64=n
#AutoIt3Wrapper_Res_Description=Eclipse Portable
#AutoIt3Wrapper_Res_Fileversion=1.6.6.2
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement=y
#AutoIt3Wrapper_Res_LegalCopyright=PortableApps.com & Contributors
#AutoIt3Wrapper_Run_Tidy=y
#AutoIt3Wrapper_Run_Obfuscator=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#NoAutoIt3Execute ;Prevent other AutoIt scripts being run
$drive = StringRegExpReplace(@ScriptDir, "(.*):\\(.*)", "$1:") ;Find out drive letter
$oldpath = EnvGet("PATH") ;Save the old PATH
EnvSet("CLASSPATH", ".") ;No idea what this variable does.
EnvSet("PATH", $oldpath & ";" & $drive & "\PortableApps\EclipsePortable\App\android-sdk-windows\tools\") ;Add Android tools to PATH
RunWait($drive & "\PortableApps\EclipsePortable\EclipsePortable.exe") ;Run Eclipse Portable
RunWait($drive & "\PortableApps\EclipsePortable\App\android-sdk-windows\platform-tools\adb.exe kill-server", Default, @SW_HIDE) ;Stop the Android debug server
EnvSet("PATH", $oldpath) ;Change the PATH back
Exit ;That's it.