blob: 219dcf360ebaea69a7d3dfe188d056994e824104 [file] [log] [blame]
<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop'
#*****************************************************************************
#
# AMW_HOT_MantisBugzilla_doc.php
#
# Author: Marcos Didonet Del Fabro
# Date: 2005-07-15
#
# Description: Type your page comments here - these are not sent to the browser
#
#
#****************************************************************************
#
# Begin: page-specific settings. Change these.
$pageTitle = "Translating Mantis to Bugzilla using AMW and ATL - HowTo";
$pageKeywords = "";
$pageAuthor = "Marcos Didonet Del Fabro";
# Paste your HTML content between the EOHTML markers!
$html = <<<EOHTML
<!-- Main part -->
<div id="midcolumn">
<table width="100%">
<tr>
<td width="50%">
<h1>$pageTitle</h1>
</td>
</tr>
</table>
<p>
This example is a complete scenario of tool interoperability that uses weaving models to capture the different kinds of
heterogeneities between the Mantis and Bugzilla metamodels. The weaving model is used to generate an ATL transformation.
This transformation translates a model
conforming to the Mantis.ecore metamodel into a model conforming to the Bugzilla.ecore metamodel.
<p/>
<h2>Instructions</h2>
<h4>Loading the weaving model into AMW:</h4>
The weaving model (models/mw_mantis_bug.amw) can be loaded by double-clicking on the
file (if using the latest release).
<br/>
<h4>Executing the transformations</h4>
<p/>
There is an Ant Script (scripts/executeAll.xml) that takes the models/mantis_model.ecore file,
and automatically produces a Bugzilla_model.ecore file.
It executes the following actions:
<ul class="midlist">
<li>
the weaving model (models/mw_mantis_bug.amw) contains links between the
metamodels/Mantis.ecore metamodel and
the metamodels/Bugzilla.ecore metamodel,
</li>
<li>
executes the ATL HOT (hot/AMWtoATLMantisBug.atl) that takes the weaving model mw_mantis_bug.amw as input
and produces the ATL model (output/Mantis2Bug.ecore) conforming to the ATL metamodel,
</li>
<li>
extracts the ATL model into an ATL file (output/Mantis2Bug.atl),
</li>
<li>
executes the ATL transformation (Mantis2Bug.atl). This transformation takes the mantis_model.ecore model as input
and produces the Bugzilla model (output/Bugzilla_model.ecore) as output,
</li>
</ul>
<p/>
<b>Remarks:</b></br>
<ul class="midlist">
<li>
The HOT and the Mantis2Bug transformations can be executed separatedly as well.
Each transformartion has a predefined "launch configuration" file. <br/>
</li>
<li>
There is one Ant scripts to execute the
the extraction of ATL models(ATLExtractor.xml).
The files in the scripts/ folder are mandatory
files to execute the Ant Scripts.
</li>
<li>
When the ATL model is extracted into Mantis2Bug.atl, the Mantis2Bug.asm file is generated by the
ATL engine. It is possible that the executeAll.xml script tries to execute the transformation
before it is extracted (in the first time the script is executed),
causing an error. To solve this issue the script needs to be executed a second time.
</li>
<li>
This example was updated to be compatible with the latest releases and sources of ATL (ATL2006).
</li>
</ul>
<p/>
</div>
EOHTML;
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>