Skip to content

A command line interface (CLI) application to execute Eclipse Query/View/Transformation (QVTo) model transformations without having Eclipse IDE installed. The build procedure is fully automated using Maven, including resolution of Eclipse dependencies.

License

Notifications You must be signed in to change notification settings

mrcalvin/qvto-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On qvto-cli

A command line interface (CLI) application to execute Eclipse Query/View/Transformation Operational (QVTo) model transformations without having Eclipse modeling IDE installed. The build procedure is fully automated using Maven, including resolution of Eclipse dependencies. The resulting artifact is a standalone jar which can be deployed and executed as-is. The aim is to provide a CLI component which can be glued to form composite applications and, thereby, make QVTo model transformations available to a broader range of (non-Java) applications.

qvto-cli consists of two sub-components:

  • qvt-bundle: This is a Maven artifact which contains all QVTo standalone Eclipse plug-in (jar) dependencies. This is achieved by using Eclipse Tycho.
  • qvto-app: This is a slim CLI app build to access Eclipse QVTo from the command line.

Prerequisites

  • Maven 3.2.5
  • Ant 1.9+
  • Java 1.7 1.8

Build procedure

  1. Clone this GIT repository and cd into it.
  2. (cd qvt-bundle && mvn clean install)
  3. (cd qvto-app && mvn clean compile package)

Note that Step 2 might require a considerable amount of time on the first run, because the corresponding Eclipse release (P2) repository is cloned and mirrored on your machine.

Usage

Usage: java -jar qvto-app-0.1-SNAPSHOT.jar [options] 
  Options:
  * -xform, --transformation
       QVTo transformation to be executed
  * -src
       Pairs of source metamodel and source model
       Default: []
    -tgt
       Pair of target metamodel and target model
       Default: []

Limitations

Beware that this project is work in progress. qvto-app is only a minimal viable software product to learn more about possible usage scenarios and meant for demonstration purposes. The CL interface is only exemplary and the app implementation rather bold. qvt-bundle represents only one approach to render Eclipse dependencies available in a Maven setup and some decisions might be revised in the future (using the Eclipse Jar-in-Jar class loader, bundling all Eclipse jars along with their unpacked content in the Maven artifact jar etc.).

As of this writing, qvto-cli was only tested against:

  • Eclipse 4.4 Luna
  • Eclipse QVTo 3.4.0

About

A command line interface (CLI) application to execute Eclipse Query/View/Transformation (QVTo) model transformations without having Eclipse IDE installed. The build procedure is fully automated using Maven, including resolution of Eclipse dependencies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages