Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Eclipse b3/cli"

(Launch headless b3)
(Launch headless b3)
Line 22: Line 22:
 
# run "b3" script in the directory where b3 is installed with previous step
 
# run "b3" script in the directory where b3 is installed with previous step
 
# if no extension is installed, only ''--stackTrace'' and ''-?'' resp. ''--help'' options and ''runScript'' command are available:
 
# if no extension is installed, only ''--stackTrace'' and ''-?'' resp. ''--help'' options and ''runScript'' command are available:
<nowiki><code>
+
<pre>
 
No command was specified
 
No command was specified
  
Line 31: Line 31:
 
Available commands:
 
Available commands:
 
runScript - Runs a set of commands from a script file
 
runScript - Runs a set of commands from a script file
</code>
+
</pre>
</nowiki>
+
  
 
==Adding extensions==
 
==Adding extensions==

Revision as of 01:06, 29 April 2010

UNDER CONSTRUCTION

This documentation needs to be written. Current content may be used as hints.

b3 Command Line Interface=

  1. explain why headless interface is important (use-cases)
  2. b3 CLI is extensible (new commands can be added by installing extensions)

Headless installation

The following steps focus on the installation of the bare b3 command line interface.

  1. Start by Downloading the (headless) director which can be found here.
  2. Next unpack the director to a location of your choice. You may want to set the PATH to include the install location and make the director accessible for additional use.
  3. Install b3 with the following command:
    • director -r <HEADLESS_REPO> -d <INSTALL_DIR> -p b3 -i org.eclipse.b3.cli.product where
      • -r <HEADLESS_REPO> is the headless p2 update site: Current version is: http://download.eclipse.org/modeling/emft/b3/headless-3.6 (Check the download page for changes of the headless update site.)
      • -d <INSTALL_DIR> is the chosen install location of the headless b3
      • -p b3 is the name of the p2 profile
      • -i org.eclipse.cli.product is the name of the headless b3 base

Launch headless b3

  1. run "b3" script in the directory where b3 is installed with previous step
  2. if no extension is installed, only --stackTrace and -? resp. --help options and runScript command are available:
No command was specified

Usage: b3 command [options...]
 --stacktrace : Display stack trace on error
 -? (--help)  : Print help screen for specified command

Available commands:
runScript - Runs a set of commands from a script file

Adding extensions

  1. use p2 director to install new features that may contribute new commands

Back to the top