blob: ce5441a5c6a715e68e64a3b1f803f2ae57665bfc [file] [log] [blame]
david_williams3c7e0da2008-07-23 04:04:08 +00001@echo off
david_williams0d49c512008-09-19 23:45:32 +00002rem This is a sample batch file, for windows, that can be execute the version checker application
3rem This file needs to be extracted and copied ot the root of the Eclipse installation (i.e. the
4rem same directory as to where 'eclipse.exe' is located.
david_williams3c7e0da2008-07-23 04:04:08 +00005
david_williams0d49c512008-09-19 23:45:32 +00006setlocal
david_williams3c7e0da2008-07-23 04:04:08 +00007
david_williams0d49c512008-09-19 23:45:32 +00008rem specify dev workspace and JRE to use to run Eclipse
david_williams3c7e0da2008-07-23 04:04:08 +00009
david_williams0d49c512008-09-19 23:45:32 +000010 rem the development workspace isn't really imortant, or used for anything
11 set devworkspace=%1
12 if %devworkspace%. == . set devworkspace=./workspace
david_williams3c7e0da2008-07-23 04:04:08 +000013
david_williams0d49c512008-09-19 23:45:32 +000014 rem change/set the JRE to one on your system
david_williams3c7e0da2008-07-23 04:04:08 +000015
david_williams0d49c512008-09-19 23:45:32 +000016 rem Sun's 1.5 JRE
17 rem set devJRE=\JDKs\jdk1.5.0_11\bin\java.exe
david_williams3c7e0da2008-07-23 04:04:08 +000018
david_williams0d49c512008-09-19 23:45:32 +000019 rem Sun's 1.6 JRE
20 rem set devJRE=\JDKs\jdk6_06\bin\java.exe
david_williams3c7e0da2008-07-23 04:04:08 +000021
david_williams0d49c512008-09-19 23:45:32 +000022 rem IBM's 1.5
23 rem set devJRE=\JDKs\ibm-java2-sdk-50-win-i386\bin\java.exe
david_williams3c7e0da2008-07-23 04:04:08 +000024
david_williams0d49c512008-09-19 23:45:32 +000025 rem IBM's 1.6 -- has problems on multi processors?
26 set devJRE=\JDKs\ibm-jdk-6-sr2\bin\java.exe
david_williams3c7e0da2008-07-23 04:04:08 +000027
david_williams0d49c512008-09-19 23:45:32 +000028rem set options for the VM
29rem add to eclipse.ini ?
30set devArgs=-showversion -Xms256m -Xmx512m
31
32rem display (echo) basic information about environment
david_williams3c7e0da2008-07-23 04:04:08 +000033echo dev: %0
34echo.
35echo devworkspace: %devworkspace%
36echo.
37echo devJRE: %devJRE%
38%devJRE% -version
39echo.
40
david_williams0d49c512008-09-19 23:45:32 +000041rem list only (that is, only create version report based on current "stack"
42rem set versionListerCommands=-listToReferenceFile
david_williams3c7e0da2008-07-23 04:04:08 +000043
david_williams0d49c512008-09-19 23:45:32 +000044rem list current and also test/compare to named reference
45 set versionListerCommands=countQualifierIncreaseOnlyAsError -testToReference WTP-3.0.1-Plus-P20080911211753 -listToReferenceFile
david_williams3c7e0da2008-07-23 04:04:08 +000046
david_williams0d49c512008-09-19 23:45:32 +000047rem Note: the "noexit" option makes it easier to see output information, but then must type 'exit' command in OSGi console
david_williams6ab713c2008-09-19 23:57:20 +000048start eclipse -noexit -nosplash -consolelog -console -debug -data %devworkspace% -vm %devJRE% -application org.eclipse.wtp.releng.versionchecker.listVersions %versionListerCommands% -vmargs %devArgs%
david_williams0d49c512008-09-19 23:45:32 +000049
50
51endlocal
52rem pause