JBoss.orgCommunity Documentation

Chapter 4. Forge Tools

4.1. Overview of Forge Tools
4.1.1. About Forge
4.1.2. About Forge Tools
4.2. Features of Forge Tools
4.2.1. Features Overview
4.2.2. Manage the Forge Console
4.2.3. Manage the Forge Runtime Server
4.2.4. Navigate to Project Resources on the Forge Command Line
4.2.5. Background Actions Invoked by Forge Commands
4.2.6. Access a List of Forge Commands
4.2.7. Use Forge Wizards
4.3. Customizing Forge Tools
4.3.1. Customizing Overview
4.3.2. Customize the Forge Start
4.3.3. Manage Forge Runtime Servers

Forge Tools invokes background actions in the IDE in response to commands issued on the command line in the Forge Console. For example, if you create a project file or directory on the Forge command line, the Project Explorer tab is automatically refreshed to show the newly created project resource. A list of Forge commands that result in additional background actions is given below.

cd

The command navigates to the project directory and selects it in the Project Explorer and Package Explorer tabs.

pick-up

The command navigates to the project resource and in the case that the resource is a file it is opened in an editor within the IDE. The project resource is selected and expanded in the Project Explorer and Package Explorer tabs. If the resource resides outside the workspace, it is selected and expanded in the Remote Systems Explorer tab, providing this is installed.

open

The command opens a file in an editor within the IDE. The project resource is selected and expanded in the Project Explorer and Package Explorer tabs. If the resource resides outside the workspace, it is selected and expanded in the Remote Systems Explorer tab, providing this is installed.

new-project

The command creates a new project. The project is automatically imported into the workspace and it is visible in the Project Explorer and Package Explorer tabs.

persistence setup

The command creates a persistence.xml file. This file is selected in the Project Explorer and Package Explorer tabs and it is automatically opened in an editor within the IDE.

entity

The command creates a new entity and associated Java file. This file is selected in the Project Explorer and Package Explorer tabs and it is automatically opened in the Java editor within the IDE.

field

The command creates a new field for an entity. The Java file associated with the entity is selected in the Project Explorer and Package Explorer tabs and it is automatically opened in an editor within the IDE and the field selected. The field is also selected in the Outline tab.

Forge Tools is distributed with a Forge runtime server but you may want to use different versions of Forge runtime servers. Forge Tools provides the ability to manage the Forge runtime servers that are available in the IDE, as detailed below.

To manage the available Forge runtime servers, click WindowPreferences, expand Forge and select Installed Forge Runtimes.


Click OK to close the Preferences window.