Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: Bash | Size: 2.25 KB | Hits: 101 | Expires: Never
Copy text to clipboard
  1. ////////////// TRACEVIEW.BAT ////////////////////////
  2. @echo off
  3. rem Copyright (C) 2007 The Android Open Source Project
  4. rem
  5. rem Licensed under the Apache License, Version 2.0 (the "License");
  6. rem you may not use this file except in compliance with the License.
  7. rem You may obtain a copy of the License at
  8. rem
  9. rem      http://www.apache.org/licenses/LICENSE-2.0
  10. rem
  11. rem Unless required by applicable law or agreed to in writing, software
  12. rem distributed under the License is distributed on an "AS IS" BASIS,
  13. rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. rem See the License for the specific language governing permissions and
  15. rem limitations under the License.
  16.  
  17. rem don't modify the caller's environment
  18. setlocal
  19.  
  20. rem Set up prog to be the path of this script, including following symlinks,
  21. rem and set up progdir to be the fully-qualified pathname of its directory.
  22. set prog=%~f0
  23.  
  24. rem Change current directory and drive to where the script is, to avoid
  25. rem issues with directories containing whitespaces.
  26. cd /d %~dp0
  27.  
  28. set jarfile=traceview.jar
  29. set frameworkdir=
  30.  
  31. if exist %frameworkdir%%jarfile% goto JarFileOk
  32.     set frameworkdir=lib\
  33.  
  34. if exist %frameworkdir%%jarfile% goto JarFileOk
  35.     set frameworkdir=..\framework\
  36.  
  37. :JarFileOk
  38.  
  39. set jarpath=%frameworkdir%%jarfile%
  40.  
  41. if not defined ANDROID_SWT goto QueryArch
  42.     set swt_path=%ANDROID_SWT%
  43.     goto SwtDone
  44.  
  45. :QueryArch
  46.  
  47.     for /f %%a in ('java -jar %frameworkdir%archquery.jar') do set
  48. swt_path=%frameworkdir%%%a
  49.  
  50. :SwtDone
  51.  
  52. if exist %swt_path% goto SetPath
  53.     echo SWT folder '%swt_path%' does not exist.
  54.     echo Please set ANDROID_SWT to point to the folder containing swt.jar for your
  55. platform.
  56.     exit /B
  57.  
  58. :SetPath
  59. set javaextdirs=%swt_path%;%frameworkdir%
  60.  
  61. call java -Djava.ext.dirs=%javaextdirs% -jar %jarpath% %*
  62.  
  63.  
  64.  
  65. ////////////// ECLIPSE.INI //////////////////////////
  66. -startup
  67. plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
  68. --launcher.library
  69. plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
  70. -product
  71. org.eclipse.epp.package.jee.product
  72. --launcher.XXMaxPermSize
  73. 256M
  74. -showsplash
  75. org.eclipse.platform
  76. --launcher.XXMaxPermSize
  77. 256m
  78. -vmargs
  79. -Dosgi.requiredJavaVersion=1.5
  80. -Xms40m
  81. -Xmx512m