REM	******** Parser Compile *********

del .\parser\ServletParser\javaparse\*.class
del .\parser\ServletParser\javapass2\*.class
del .\parser\ServletParser\sqlparse\*.class
del .\parser\ServletParser\library\*.class
del .\parser\ServletParser\javalex\*.class
del .\parser\ServletParser\sqllex\*.class
del .\parser\ServletParser\javaparse\Sym.java
del .\parser\ServletParser\javaparse\Analyzer.java

java -classpath c:\cup java_cup.Main -parser Analyzer -symbols Sym .\parser\ServletParser\javaparse\javasyntax1.cup
move Sym.java .\parser\ServletParser\javaparse\Sym.java
move Analyzer.java .\parser\ServletParser\javaparse\Analyzer.java

del .\parser\ServletParser\javapass2\Sym.java
del .\parser\ServletParser\javapass2\CallGraphAnalyzer.java

java -classpath c:\cup java_cup.Main -parser CallGraphAnalyzer -symbols Sym .\parser\ServletParser\javapass2\javasyntax2.cup
move Sym.java .\parser\ServletParser\javapass2\Sym.java
move CallGraphAnalyzer.java .\parser\ServletParser\javapass2\CallGraphAnalyzer.java

del .\parser\ServletParser\sqlparse\Sym.java
del .\parser\ServletParser\sqlparse\SQLAnalyzer.java

java -classpath c:\cup java_cup.Main -parser SQLAnalyzer -symbols Sym .\parser\ServletParser\sqlparse\sqlsyntax.cup
move Sym.java .\parser\ServletParser\sqlparse\Sym.java
move SQLAnalyzer.java .\parser\ServletParser\sqlparse\SQLAnalyzer.java

del visualizer\modeler\*.class
del visualizer\figure\*.class
javac -classpath . ui/VisualizerMenu.java
javac -classpath . visualizer/modeler/*.java
javac -classpath . visualizer/figure/*.java
javac -classpath . ui/SRDiagram.java
javac -classpath . ui/SystemDiagram.java


javac parser/*.java
javac -classpath .;.\lib\java_cup.zip parser/ServletParser/*.java
javac -classpath . ui/Inventory.java


REM	******** Database Compile ************
javac Database/*.java


REM	******* extractor Compile ************
javac extractor/classToEjb/*.java
javac extractor/classToEjb/classToEntity/*.java
javac extractor/classToEjb/classToSession/*.java
javac extractor/extractMethod/*.java
javac extractor/SCA_API/*.java
javac extractor/ui/*.java
javac extractor/ui/EXmethodUI/*.java
javac extractor/component/*.java

javac extractor/ui/servletUI/Servlet*.java
javac extractor/ui/clusteringUI/Class*.java

REM	********* Generator Compile ************
javac Generation/*.java


REM	********* UI Compile ************
 javac ui/*.java
javac ui/SystemDiagram.java

javac visualizer/scd/*.java
javac visualizer/scd/data/*.java
javac visualizer/scd/data/enum/*.java
 javac visualizer/scd/data/model/*.java
 javac visualizer/scd/data/object/*.java

 javac visualizer/scd/form/classDiagram/*.java
 javac visualizer/scd/form/dialog/*.java
 javac visualizer/scd/form/main/*.java
 javac visualizer/scd/image/*.java

javac visualizer/cd/*.java
 javac visualizer/cd/data/*.java
javac visualizer/cd/data/enum/*.java
 javac visualizer/cd/data/model/*.java
 javac visualizer/cd/data/object/*.java

 javac visualizer/cd/form/classDiagram/*.java
 javac visualizer/cd/form/dialog/*.java
 javac visualizer/cd/form/main/*.java
 javac visualizer/cd/image/*.java

REM	********* Web2EJB Compile ************
 javac *.java
 
pause