Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2477d14a70c15835c9b229441b843f2f5b43f79d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo on

rem The following variables need to be set/specified for each "development machine"
set PATH=%PATH%;D:\JDKs\j2sdk1.4.2_03\bin
set WORKSPACE_LOCATION=D:\builds\Workspaces\RC2
set JFLEX_LIB_LOCATION=D:\DevTimeSupport\JFlex-1.4\lib

rem The following variables differ from project to project, but should be otherwise constant
set MAIN_NAME=XML10Names

set PROJECT_SRC=\org.eclipse.wst.sse.core.xml\src\
set PACKAGE_DIR=com\ibm\sse\model\xml\internal\parser\


rem Given the above "framework" and the command themselves, these variables should never need to be modified
set JAVA_FILE=%MAIN_NAME%.java
set JFLEX_RULES=%MAIN_NAME%.jflex
set SKELETON_FILE=%MAIN_NAME%.skeleton

IF EXIST %JAVA_FILE% del %JAVA_FILE%
rem java -Xmx470000000 -cp %JFLEX_LIB_LOCATION%\sed-jflex.jar;. JFlex.Main %JFLEX_RULES% -skel %SKELETON_FILE% 1>jflexout.txt 2>jflexerr.txt
java -Xmx470000000 -cp %JFLEX_LIB_LOCATION%\sed-jflex.jar;. JFlex.Main %JFLEX_RULES%  1>jflexout.txt 2>jflexerr.txt
IF EXIST %JAVA_FILE% copy %JAVA_FILE% %WORKSPACE_LOCATION%%PROJECT_SRC%%PACKAGE_DIR%%JAVA_FILE%

pause

Back to the top