blob: 624eb09f5e9f0c1159f2404625f8784887539bfc [file] [log] [blame]
nickboldt03a6f082019-02-12 15:17:11 -05001@rem ***************************************************************************
2@rem Copyright (c) 2008, 2019 IBM Corporation and others.
3@rem This program and the accompanying materials
4@rem are made available under the terms of the Eclipse Public License 2.0
5@rem which accompanies this distribution, and is available at
6@rem https://www.eclipse.org/legal/epl-2.0/
7@rem
8@rem SPDX-License-Identifier: EPL-2.0
9@rem
10@rem Contributors:
11@rem IBM Corporation - initial API and implementation
12@rem ***************************************************************************
david_williams3c7e0da2008-07-23 04:04:08 +000013@echo off
david_williams0d49c512008-09-19 23:45:32 +000014rem This is a sample batch file, for windows, that can be execute the version checker application
15rem This file needs to be extracted and copied ot the root of the Eclipse installation (i.e. the
16rem same directory as to where 'eclipse.exe' is located.
david_williams3c7e0da2008-07-23 04:04:08 +000017
david_williams0d49c512008-09-19 23:45:32 +000018setlocal
david_williams3c7e0da2008-07-23 04:04:08 +000019
david_williams0d49c512008-09-19 23:45:32 +000020rem specify dev workspace and JRE to use to run Eclipse
david_williams3c7e0da2008-07-23 04:04:08 +000021
david_williams0d49c512008-09-19 23:45:32 +000022 rem the development workspace isn't really imortant, or used for anything
23 set devworkspace=%1
24 if %devworkspace%. == . set devworkspace=./workspace
david_williams3c7e0da2008-07-23 04:04:08 +000025
david_williams0d49c512008-09-19 23:45:32 +000026 rem change/set the JRE to one on your system
david_williams3c7e0da2008-07-23 04:04:08 +000027
david_williams0d49c512008-09-19 23:45:32 +000028 rem Sun's 1.5 JRE
29 rem set devJRE=\JDKs\jdk1.5.0_11\bin\java.exe
david_williams3c7e0da2008-07-23 04:04:08 +000030
david_williams0d49c512008-09-19 23:45:32 +000031 rem Sun's 1.6 JRE
32 rem set devJRE=\JDKs\jdk6_06\bin\java.exe
david_williams3c7e0da2008-07-23 04:04:08 +000033
david_williams0d49c512008-09-19 23:45:32 +000034 rem IBM's 1.5
35 rem set devJRE=\JDKs\ibm-java2-sdk-50-win-i386\bin\java.exe
david_williams3c7e0da2008-07-23 04:04:08 +000036
david_williams0d49c512008-09-19 23:45:32 +000037 rem IBM's 1.6 -- has problems on multi processors?
38 set devJRE=\JDKs\ibm-jdk-6-sr2\bin\java.exe
david_williams3c7e0da2008-07-23 04:04:08 +000039
david_williams0d49c512008-09-19 23:45:32 +000040rem set options for the VM
41rem add to eclipse.ini ?
42set devArgs=-showversion -Xms256m -Xmx512m
43
44rem display (echo) basic information about environment
david_williams3c7e0da2008-07-23 04:04:08 +000045echo dev: %0
46echo.
47echo devworkspace: %devworkspace%
48echo.
49echo devJRE: %devJRE%
50%devJRE% -version
51echo.
52
david_williams0d49c512008-09-19 23:45:32 +000053rem list only (that is, only create version report based on current "stack"
54rem set versionListerCommands=-listToReferenceFile
david_williams3c7e0da2008-07-23 04:04:08 +000055
david_williams0d49c512008-09-19 23:45:32 +000056rem list current and also test/compare to named reference
57 set versionListerCommands=countQualifierIncreaseOnlyAsError -testToReference WTP-3.0.1-Plus-P20080911211753 -listToReferenceFile
david_williams3c7e0da2008-07-23 04:04:08 +000058
david_williams0d49c512008-09-19 23:45:32 +000059rem 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 +000060start 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 +000061
62
63endlocal
64rem pause