blob: b8ab9c171c6ae226f9c5803403cfb8e86c38481c [file] [log] [blame]
<!--
/********************************************************************************
* Copyright (c) 2011, 2019 INRIA & Ecole des Mines de Nantes.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Hugo Bruneliere - Initial implementation
*
******************************************************************************/
-->
<project name="ExtractXML" default="extract">
<!-- Workspace relative paths -->
<property name="XMLmodelPath" value="org.eclipse.modisco.usecase.java.samplemetrics/Models/Temp/metricsB-SVG-XML.xmi"/>
<property name="XMLdocumentPath" value="org.eclipse.modisco.usecase.java.samplemetrics/Results/metricsB.svg"/>
<target name="extract" depends="loadMetamodels">
<!-- Load the XML model -->
<atl.loadModel modelHandler="EMF" name="XMLmodel" metamodel="XML" path="${XMLmodelPath}"/>
<!-- Extract the XML model as an XML document -->
<atl.saveModel model="XMLmodel" path="${XMLdocumentPath}">
<extractor name="XML"/>
</atl.saveModel>
</target>
<target name="loadMetamodels">
<!-- Load XML metamodel -->
<atl.loadModel modelHandler="EMF" name="XML" metamodel="%EMF" path="org.eclipse.modisco.tool.metricsvisualizationbuilder/Metamodels/XML.ecore" />
</target>
</project>