Generate a project using a command line

From The Real BLU AGE® Wiki
Jump to: navigation, search
Updating Wiki - Mise à jour du Wiki

The Wiki is currently being updated to the Blu Age 5.4 version. - Le Wiki est en cours de migration vers la version 5.4 de Blu Age.

— The Blu Age Team

Last updated : 04/20/2015
Applies to versions : Blu Age II 5.0 - all technologies


Using a local model

Command line


java [Vmarg]* -Dmagicdraw.dir=[magicdraw directory] -Dmagicdraw.use.dialog.auto.dispose=true -Dmagicdraw.use.popup.dialog=false -Dheadless.mode=true -Djavax.net.ssl.trustStore=[Bluage installation directory]/eclipse/bluage.jks -jar [Bluage installation directory]/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -data [Bluage workspace path] -application com.netfective.bluage.generator.configrunner.application [project name] [bluage launch name] [local model path] [true|false]


The last argument indicates if a post processing to clean up imports should be applied or not. Using this option will slower significantly the generation process, but will improve your sonar results significantly.


example :

java -Xmx1048M -XX:PermSize=40M -XX:MaxPermSize=512M -Dmagicdraw.dir="D:\Programmes\Bluage\BLUAGE\magicdraw" -Dmagicdraw.use.dialog.auto.dispose=true -Dmagicdraw.use.popup.dialog=false -Dheadless.mode=true -Djavax.net.ssl.trustStore=D:/Programmes/Bluage/BLUAGE/eclipse/bluage.jks -jar D:/Programmes/Bluage/BLUAGE/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -data D:/workspaces/JSF2 -application com.netfective.bluage.generator.configrunner.application HowToDatatable HowToDatatable_launch file:///D:/workspaces/JSF2/HowToDatatable/model/HowTo.mdzip true

Using a Teamwork model

When using a Teamwork model:

  • the -application parameter value must be com.netfective.bluage.generator.configrunner.applicationForTW;
  • the [local model path] parameter is replaced by 5 specific Teamwork parameters.


Command line


java [Vmarg]* -Dmagicdraw.dir=[magicdraw directory] -Dmagicdraw.use.dialog.auto.dispose=true -Dmagicdraw.use.popup.dialog=false -Dheadless.mode=true -Djavax.net.ssl.trustStore=[Bluage installation directory]/eclipse/bluage.jks -jar [Bluage installation directory]/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -data [Bluage workspace path] -application com.netfective.bluage.generator.configrunner.applicationForTW [project name] [bluage launch name] [project name on TW|project name##branch name] [TW server] [TW server port (-1 = default port)] [TW user] [TW password] [true|false]


The last argument indicates if a post processing to clean up imports should be applied or not. Using this option will slower significantly the generation process, but will improve your sonar results significantly.


example :

java -Xmx1048M -XX:PermSize=40M -XX:MaxPermSize=512M -Dmagicdraw.dir="D:\Programmes\Bluage\BLUAGE\magicdraw" -Dmagicdraw.use.dialog.auto.dispose=true -Dmagicdraw.use.popup.dialog=false -Dheadless.mode=true -Djavax.net.ssl.trustStore=D:/Programmes/Bluage/BLUAGE/eclipse/bluage.jks -jar D:/Programmes/Bluage/BLUAGE/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -data D:/workspaces/JSF2 -application com.netfective.bluage.generator.configrunner.application HowToDatatable HowToDatatable_launch HowTo##myBranch myTWServer -1 twUser twPassword true

In the above example the HowTo model is located in the myBranch branch. For the same project in the trunk, replace HowTo##myBranch by HowTo

Return codes

  • 0 : Success
  • 1 : Incorrect number of parameters
  • 2 : Licence validation error
  • 3 : MagicDraw startup error
  • 13 : Generation or model validation error