1
|
1 |
rem You need to set the ECLIPSE_DIR variable below. It should point to your eclipse directory.
|
|
2 |
set ECLIPSE_DIR=z
|
|
3 |
|
|
4 |
rem Model project
|
|
5 |
set MAIN_DIR=..
|
|
6 |
|
|
7 |
rem The directory indicated by the -modelProject argument should be neither a parent nor a child directory of the workspace.
|
|
8 |
set WORKSPACE=%MAIN_DIR%\..\codegenWorkspace
|
|
9 |
|
|
10 |
rem XSD2GenModel application
|
|
11 |
%ECLIPSE_DIR%\eclipsec -noSplash -clean -data %WORKSPACE% -application org.eclipse.xsd.ecore.importer.XSD2GenModel %MAIN_DIR%\model\library.xsd %MAIN_DIR%\emf\library.genmodel -modelProject %MAIN_DIR% src -copyright "This is my code." -jdkLevel "5.0" -packages http://www.example.eclipse.org/Library -packageMap http://www.example.eclipse.org/Library org.examples.library
|
|
12 |
|
|
13 |
rem Generator application
|
|
14 |
%ECLIPSE_DIR%\eclipsec -noSplash -clean -data %WORKSPACE% -application org.eclipse.emf.codegen.ecore.Generator -model %MAIN_DIR%\emf\library.genmodel |