Switch to unified view

a b/eu.opensourceprojects.mondo.benchmarks.itmfactory/build/build-spreadsheet2trace.xml
1
<!--
2
/********************************************************************************
3
 * Copyright (c) 2007 INRIA. 
4
 * All rights reserved. This program and the accompanying materials 
5
 * are made available under the terms of the Eclipse Public License v1.0 
6
 * which accompanies this distribution, and is available at
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
9
 * Contributors: 
10
 *     INRIA - Initial implementation
11
 *     
12
 ******************************************************************************/
13
-->
14
15
<!-- author: BENELALLAM Amine -->
16
17
<!-- How to configure this ant script:
18
  Run as->Ant Build...
19
      Set:
20
          - Run in same JRE
21
-->
22
23
<project name="sheet2traceTrans" default="transform">
24
  <taskdef resource="net/sf/antcontrib/antlib.xml" classpath="../libs/ant-contrib-1.0b3.jar" />
25
  <target name="transform">
26
      <antcall target="spreadsheet2trace"/>       
27
  </target>
28
  
29
  <target name="spreadsheet2trace">
30
      <atl.loadModel modelHandler="EMF" name="Sheet" metamodel="MOF" path="../models/SpreadsheetMLSimplified.ecore" />
31
      <atl.loadModel modelHandler="EMF" name="Trace" metamodel="MOF" path = "../models/trace.ecore"  />   
32
      <atl.loadModel modelHandler="EMF" name="sheetModel" metamodel="Sheet" path="../inputs/set1.sheet.xmi" />                
33
      <atl.launch path="../transformations/SpreadsheetMLSimplified2Trace.asm">
34
          <inmodel name = "IN" model = "sheetModel"/>
35
          <outmodel name="OUT" model="traceModel" metamodel = "Trace"/>
36
      </atl.launch>   
37
      <atl.saveModel model="traceModel" path="../outputs/set1.trace.xmi"/>    
38
  </target>
39
</project>
40