Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Running the "Viatra Generator" through the command shell

Mustafakha edited this page Oct 20, 2018 · 3 revisions

WINDOWS MACHINES

1) If not already downloaded, make sure to download the standalone application through the following link: https://drive.google.com/file/d/1ktsmLtbDKD08Qks87GMx_ZNuERo8bbxf/view?usp=sharing

The default name of this folder is "test"

2) Launch the "Terminal" and make sure to be in the same directory as the unzipped application file, then input the following command: java -jar aa.jar configs/generation.vsconfig

After a few seconds, "Model generation started" should appear.

3) Wait a few minutes for the application to finish the transformation

4) If completed successfully, the following should appear :

Models: [1.xmi]

Visualisations: [1.gml]

Visualisations: [1.png]

Model generation finished

5) The desired outputs should be located in "/test/outputs/models".

OS X & LINUX MACHINES

1) If not already downloaded, make sure to download the standalone application through the following link: https://drive.google.com/file/d/1ktsmLtbDKD08Qks87GMx_ZNuERo8bbxf/view?usp=sharing

The default name of this folder is "test"

2) Move to the directory "/test/configs" and open the "generation.vsconfig" file in a text editor of your choice. Change the following lines of code:

config = { runtime = 10000, log-level = _normal_ --> **none** }

This is to avoid a common "Exception in Thread" error.

3) Launch the "Terminal" and make sure to be in the same directory as the unzipped application file, then input the following command: java -jar aa.jar configs/generation.vsconfig

After a few seconds, "Model generation started" should appear.

4) Wait a few minutes for the application to finish the transformation

5) If completed successfully, the following should appear :

Models: [1.xmi]

Visualisations: [1.gml]

Visualisations: [1.png]

Model generation finished

6) The desired outputs should be located in "/test/outputs/models".

Clone this wiki locally