# AlphaZ

### Site Tools

command_line_alphaz

# Differences

This shows you the differences between two versions of the page.

 — command_line_alphaz [2014/05/30 11:49] (current) Line 1: Line 1: + =====Running AlphaZ from Command Line===== + Although AlphaZ is mainly designed to be used from Eclipse, it is sometime desirable to run the compiler scripts from command line. + #!/bin/bash + ​ + ECLIPSE=/​s/​chopin/​e/​proj/​AlphaZ/​BinTree/​eclipse-alphaz-bundle/​eclipse/​eclipse + SCRIPT=basicTest.cs + WORKSPACE=./​workspace + ​ + ${ECLIPSE} -application fr.irisa.r2d2.gecos.framework.compiler -c${SCRIPT} -data ${WORKSPACE} -noSplash + + The above bash script is a template that you can use to execute compiler scripts (.cs files) from command line. + + It executes eclipse in "​Eclipse Application"​ mode, using the application defined in the ''​fr.irisa.r2d2.gecos.framework.compiler''​ plug-in. The gecos compiler application is the engine that executes compiler scripts, and this is actually (more or less) what is happening behind the scenes when you run compiler scripts from Eclipse. + + ''​-c${SCRIPT}''​ is input argument to the gecos compiler, giving the script to execute. + + Since Eclipse Application is another instance of Eclipse being launched, a workspace needs to be specified. This workspace has nothing to do with the workspace you have for your eclipse projects. In fact, you should NOT give the path to the workspace with your projects. + + ''​-noSplash''​ option removes the Eclipse loading screen while launching Eclipse.