# Defining the Server preference

Using the Preferences page, you can define attributes used for testing projects by the servers. To define these preferences, do the following:

1. From the Window menu, select Preferences.
2. In the Preferences page, select Server.
3. Specify one or more of the following settings by selecting the appropriate check box:

   Option | Description
   Automatically publish before starting servers | Specifies that all the files should automatically be published before starting the server.
   Automatically restart servers when necessary | Specifies that the server tools can automatically restart the server when it detects that the server must be restarted to handle resource changes in the workspace.
   Prompt before making irreversible changes within an editor | Specifies that the server tools will prompt you before you make a change in a editor that cannot be undone.
   Create server resources in workspace | Specifies that when a server is created to also create its server and server configuration files to be displayed in the workspace. For example, when this check box is selected; in the Navigator view, these server resources appear in the server project folder. By default, this option is disabled and the resources are saved as metadata.

4. Under Save dirty editors before starting server, specify the preferences for saving the changes in any open server editors before starting the server by selecting one of the following:

   Option | Description
   Never | Specifies that the server tools will not save the changes in any open editors before starting the server.
   Prompt | Specifies that the server tools will prompt you before saving any changes in an open server editor.
   Auto-save | Specifies that the server tools will automatically save any changes in an open server editor before starting the server.

5. Click Apply and then OK to save your changes.

(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.