| <?xml version="1.0"?> |
| <!-- |
| Copyright (c) 2013 Eike Stepper (Loehne, Germany) and others. |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| |
| Contributors: |
| Eike Stepper - initial API and implementation |
| --> |
| <project name="generateTestModels" default="main"> |
| |
| <dirname property="antfile.dir" file="${ant.file}"/> |
| <property name="main.directory" location="${antfile.dir}/.."/> |
| |
| <macrodef name="generate"> |
| <attribute name="model"/> |
| <sequential> |
| <emf.Ecore2Java model="${main.directory}/org.eclipse.emf.cdo.tests.@{model}/model/@{model}.ecore" |
| genModel="${main.directory}/org.eclipse.emf.cdo.tests.@{model}/model/@{model}.legacy.genmodel" |
| reconcileGenModel="reload"/> |
| <emf.Ecore2Java model="${main.directory}/org.eclipse.emf.cdo.tests.@{model}/model/@{model}.ecore" |
| genModel="${main.directory}/org.eclipse.emf.cdo.tests.@{model}/model/@{model}.genmodel" |
| reconcileGenModel="reload"/> |
| </sequential> |
| </macrodef> |
| |
| <target name="main"> |
| <generate model="mango"/> |
| <generate model="model1"/> |
| <generate model="model2"/> |
| <generate model="model3"/> |
| <generate model="model4interfaces"/> |
| <generate model="model4"/> |
| <generate model="model5"/> |
| <generate model="model6"/> |
| </target> |
| |
| </project> |