Switch to unified view

a b/eu.opensourceprojects.mondo.benchmarks.itmfactory/build/build-trace2metrics.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="trace2metricsTrans" default="transform">
24
  <taskdef resource="net/sf/antcontrib/antlib.xml" classpath="../libs/ant-contrib-1.0b3.jar" />
25
  <target name="transform">
26
      <antcall target="trace2metrics"/>       
27
  </target>
28
  
29
  <target name="trace2metrics">
30
      <atl.loadModel modelHandler="EMF" name="Trace" metamodel="MOF" path="../models/Trace.ecore" />
31
      <atl.loadModel modelHandler="EMF" name="Metrics" metamodel="MOF" path = "../models/Metrics.ecore"  />   
32
      <atl.loadModel modelHandler="EMF" name="traceModel" metamodel="Trace" path="../inputs/set1.trace.xmi" />                
33
      <atl.launch path="../transformations/Trace2PerformanceMetrics.asm" refining="true">
34
          <inmodel name = "IN" model = "traceModel"/>
35
          <outmodel name="OUT" model="metricsModel" metamodel = "Metrics"/>
36
      </atl.launch>   
37
      <atl.saveModel model="traceModel" path="../outputs/set1.metrics.xmi"/>  
38
  </target>
39
</project>
40