IntelliJ IDEA 13.1.0 Web Help

Some features described here are available in Ultimate edition only.

File | Settings | Application Servers

Configure when editing a run/debug configuration for an application server in the Run/Debug Configurations dialog.

Use this page or dialog to manage configurations for the supported application servers and their settings.

Shown in the pane under add and delete are the servers already defined in IntelliJ IDEA. When you select a server in this pane, the corresponding configuration settings and associated controls are shown in the area to the right. (If you are editing a run configuration for a particular server (e.g. Tomcat), only the existing configurations for this particular server are shown.)

Use add to add new server definitions (configurations) to IntelliJ IDEA. Use delete to remove unnecessary server configurations.

To edit the settings for an existing server configuration, select the configuration of interest in the left-hand pane and use the controls in the right-hand part.

Note that the list of servers you can work with depends on which server integration plugins are currently enabled. See Enabling Application Server Integration Plugins.

Toolbar buttons

Use the toolbar buttons add and delete to add new server configurations and to remove unnecessary ones.

Item Shortcut Description
add Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter Click this button to add an application server configuration.

If in the Settings dialog, select the server for which you want to add a server configuration. (If you are editing a run configuration for a particular server, it's assumed that you are adding a server configuration for this particular server.)

In the dialog that opens, specify the server settings and click OK. For more information, see Settings and controls for servers other than Cloud Foundry and CloudBees, Settings and controls for Cloud Foundry or Settings and controls for CloudBees.

delete Alt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteCommand DeleteCommand DeleteCommand Delete Click this button to remove the selected application server configuration.

Settings and controls for servers other than Cloud Foundry and CloudBees

Item Description
Name Use this field to edit the name of the server configuration.
<Server> Home Specify the path to the application server installation folder.

If necessary, use browseButton to select the folder in the corresponding dialog.

<Server> Version The detected application server version (readonly).

See also, Libraries and Configuration file list (for Jetty 7 or later versions).

Settings and controls for Cloud Foundry

Item Description
Name Use this field to edit the name of the server configuration.
Cloud instance The Cloud Foundry instance. Select:
Port For a Cloud Foundry VCAP instance (Local (vcap.me)): specify the http port (80 by default).
Domain name For a Micro Cloud Foundry instance: specify the domain name associated with your Micro Cloud Foundry instance. If the Micro Cloud Foundry instance is used in the online mode, only the part preceding .cloudfoundry.me should be specified.
Username (email) Specify the user name for your user account on the target Cloud Foundry server. Usually, this is your email address.
Password Specify the password for your Cloud Foundry user account.
Test connection Click this button to make sure that the settings are correct and IntelliJ IDEA can properly communicate with the target server instance.
Register new user Click this button to create a new user account for the target Cloud Foundry server instance. In the dialog that opens, specify the user name (use your email address) and password.
Download client libraries Click this button to download and install the Cloud Foundry client software. This software in necessary for IntelliJ IDEA to be able to work with Cloud Foundry.

Settings and controls for CloudBees

Item Description
Name Use this field to edit the name of the server configuration.
Domain Specify your CloudBees domain name. For hosted CloudBees, this is the part preceding .cloudbees.com.
Username (email) Specify the user name for your CloudBees user account. Usually, this is your email address.
Password Specify the password for your CloudBees user account.
Test connection Click this button to make sure that the settings are correct and IntelliJ IDEA can properly communicate with the server.
Download client libraries Click this button to download and install the CloudBees client software. This software is necessary for IntelliJ IDEA to be able to work with CloudBees.

Libraries

Use the controls in this area to manage the contents of the libraries associated with the server configuration.

Item Tooltip and Shortcut Description
add Add
Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter
Use this icon or shortcut to add items to the library. Select one of the following options:
  • Attach Files or Directories. Select this option to add classes, sources and documentation available locally.

    In the dialog that opens, select the necessary files and folders. These may be individual .class, .java, .jar and .zip files, the directories containing such files, etc. Note that a number of files and folders can be selected simultaneously.

    IntelliJ IDEA will analyze the selected files and folders, and automatically assign their contents to the appropriate library categories (Classes, Sources, Documentation, etc.).

    In cases when detection of a category is problematic (e.g. when you select an empty folder), a dialog will be shown, in which you will be able to specify the category yourself.

  • Specify Documentation URL. To be able to use external documentation available online, select this option, and specify the URL of the external documentation in the dialog that opens.
delete Detach
Alt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteCommand DeleteCommand DeleteCommand Delete
Use this icon or shortcut to remove the selected items from the library.

Configuration file list (for Jetty 7 or later versions)

For Jetty 7 or later versions, there is a section for managing the configuration file list. This section is located below the field that shows the Jetty version.

The configuration file list section provides a GUI for editing the file <jetty_home>\start.ini from IntelliJ IDEA. (start.ini contains the arguments of <jetty_home>\start.jar which is used to start Jetty.)

IntelliJ IDEA provides a two-way synchronization between the configuration file list and the start.ini file.

To render the configuration file list, IntelliJ IDEA reads the start.ini file each time the Application Servers dialog is opened. On the other hand, all the changes made to the configuration file list in IntelliJ IDEA are immediately saved in start.ini.

Using the available controls, you can make the configuration files active or inactive, add, replace and remove the files as well as change their order.

Item Tooltip and Shortcut Description
Active Use the check boxes next to the corresponding Jetty configuration files to select or deselect these files.

As soon as you deselect a file, the corresponding line in start.ini is commented. When you make a file active, the corresponding entry in start.ini is uncommented.

Path The paths to the corresponding Jetty configuration files are shown (readonly).

For the files located within the Jetty installation directory and its subdirectories, the paths are relative to Jetty home (that is, the installation directory). For all the rest of the configuration files, the absolute paths are shown.

add Add
Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter
Use this icon or shortcut to add a configuration file to the list. In the dialog that opens, select the necessary Jetty configuration file and click OK.

Adding a file to the list leads to adding a new (commented) entry to start.ini.

edit1 Edit
EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter
Use this icon or shortcut to replace the selected file with a different Jetty configuration file. In the dialog that opens, select the replacement configuration file and click OK.
delete Detach
Alt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteCommand DeleteCommand DeleteCommand Delete
Use this icon or shortcut to remove the selected file from the list. Note that this operation does not delete the file physically. However, the corresponding entry is removed from start.ini.
arrowUp Alt+UpAlt+UpAlt+UpAlt+UpAlt+Up or Ctrl+Alt+AAlt+UpAlt+UpCtrl+Alt+UpCtrl+Shift+UpControl UpControl UpControl Alt Up Use this icon or shortcut to move the selected file one line up in the list.

Note that the order of configuration files in the list is important because it corresponds to the order of arguments passed to start.jar when starting Jetty.

arrowDown Alt+DownAlt+DownAlt+DownAlt+DownAlt+Down or Ctrl+Alt+EAlt+DownAlt+DownCtrl+Alt+DownCtrl+Shift+DownControl DownControl DownControl Alt Down Use this icon or shortcut to move the selected file one line down in the list.

See Also

Procedures:

Reference:

External Links:

Web Resources: