Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » PHP-Java migration
PHP-Java migration [message #575447] Fri, 30 July 2010 08:55 Go to next message
André B hlke is currently offline André B hlkeFriend
Messages: 14
Registered: July 2010
Junior Member

how would you migrate a PHP project to a Java project using MoDisco and other EMF based technologies? Is that Use-Case supported by MoDisco?

As far as I understand, I would take a PHP metamodel and transform it to a Java metamodel.

Thank you!

Kind regards,
Re: PHP-Java migration [message #575492 is a reply to message #575447] Fri, 30 July 2010 17:55 Go to previous message
Fabien Giquel is currently offline Fabien GiquelFriend
Messages: 139
Registered: July 2009
Senior Member

this use-case is not yet supported by MoDisco, since MoDisco does not
provide metamodels and discoverers dedicated to Php technology (such a
contribution would be welcome).

Yes, such a use case might be done, in some cases, with a transformation
from Php metamodel to Java metamodel. But it may require other metamodels :

PHP legacy agregates some Business logic (using php language) and some
UI logic (using html syntax & php language). It is convenient to
represent the two involved technologies with two metamodels. In Java
world, we may choose various corresponding technologies, e.g. JSP &
Java. So we may imagine a scenario like this :
-Discovery of PhpUI model and PhpScript model
-M2M -> IN : PhpUI model, PhpScript model OUT : Java model, JSP model
-M2T -> java and JSP files generation from Java & JSP models

Such a transformation is not easy to write, since the application
architecture may require some refactoring to fit with the target
platform --> it may be convenient to design it again at a more abstract
level, e.g. using a UML "PSM" representation. So a scenario of migration
may look like this :
-Discovery of PhpUI model and PhpScript model
-M2M -> IN : PhpUI model, PhpScript model OUT : UML model
-M2M -> INOUT : UML model
-M2T -> java and JSP files generation from UML model
-Completion of Java & JSP code (rewriting some operations in Java, ...)


R&D Engineer
4, rue du Château de l'Eraudiere
Previous Topic:KDM -> UML2 Conversion with Helios
Next Topic:PHP-Java migration
Goto Forum:

Current Time: Thu May 24 08:23:01 GMT 2018

Powered by FUDForum. Page generated in 0.01649 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top