Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Web Tools Guide
Previous Page Home Next Page

Publishing your application

Publishing involves copying files (projects, resource files, and server configurations) to the correct location for the server to find and use them. In the test environments, these files may already be in the correct location. In some cases, temporary copies of the server configurations may be created. You can either publish your application automatically or manually.

Automatically publishing to a server

If the Automatically publish when starting servers check box on the Server preferences page ( Window > Preferences > Server > Launching ) is selected, the server tools check to see if your project and files on the server are synchronized. If they are not, the project and the files are automatically updated when the server is either started or restarted.

To publish your application manually you can complete one of the following in the Servers view:

In the workbench, you have several options to choose for the Publishing settings. You can set these Publishing settings by going into the Servers view, right-click the server and select Open. The Server editor opens. In the Overview page of the server editor, under the Publishing settings, you are going to find the following settings:
  • Never publish automatically: Specifies the workbench should never publish files to the server.
  • Automatically publish when resources change: Specifies that when a change is made to the files running on the server, the number of seconds specified in the Publishing interval control will need to pass before the workbench calls a publish to happen on the server. However, if you make a subsequent change to the files before this time interval has completed, the publish is delayed as the timer is reset. The workbench makes a publish to the server only after the full time interval has passed. If you set the publishing interval to 0 seconds, a change to the files running on the server should automatically request a publish command to occur.

In the workbench, the default setting is the Use automatic publishing settings option is enabled with a value set to the publishing interval.

Manually publishing to a server

If you do not want to wait for the automatic publishing interval to pass, at anytime you can manually request the workbench to issue a publish command to the server. Each manual publish command causes a single publishing request to the server. To publish your application manually you can complete one of the following in the Servers view:

  • Select the server and then click the Publish to the server This is an image of the Publish toolbar
icon. icon located on the toolbar.
  • Right-click the server and then select Publish.

All the projects defined in the server configuration that are associated with the selected server are published. The resources in these projects are transferred to the location that is defined by the server.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire