New project switching capabilities for Eclipse and WebSphere Studio

Source: Internet
Author: User

Introduction

The time has passed when a "bullish" programmer can write code alone. In fact, it is necessary to share code in every important development project. Eclipse and Ibm®websphere®studio provide several methods that you can use to share your code with colleagues, each of which has both advantages and disadvantages. In large development projects, the most common shared methods are shared through a repository (repository). However, sometimes you might want to share your work without using a repository.

This article explains several different approaches to repository and non-repository code sharing, and explains the pros and cons of each approach. This article also introduces a new project Interchange (interchange) feature, which provides an optional way to share code without using the repository.

Setting up the environment

To demonstrate the examples in this article, you will need to run two workspaces. There are two ways of doing this:

Run the workspace on two separate machines

Run two workspaces on the same machine

Using the-data <workspaceLocation> startup parameters when running Eclipse or WebSphere studio, you can run two workspaces on the same machine, where workspacelocation is the absolute path (Absolutepath) that points to your local drive. On the windows® platform, you can simply create a shortcut to an executable file (Eclipse.exe or Wsappdev.exe) and add that parameter to the Target field. Whether you use two machines or the same machine, we call the workspace where the project was created as the source workspace, and the workspace where you want to load the shared work as the target workspace.

First, you will need to store some items in your source workspace. If you already have a set of dependencies, you can use them; You can also use sample projects, so you need to do the following steps to add them. This article will use the project created by adding the Auction example (you can take advantage of the WebSphere Studio application Developer) and add some details to it. To add these items to your workspace, you can perform the following steps:

From the Workbench window, select File => New => and examples => Enterprise applications the 1.3 =>.

Click the Next button, accept the default settings, and then click the Finish button.

Add three new projects to your workspace: Auctionexample, AUCTIONRUNV5EJB, and Auctionrunv5web. This is a good example for project sharing, because you need to share all the items as a group so that they make sense in another workspace. However, in order to have some fun, let's add two different dependencies. First, add the project Utility jar to the ear:

Create a new java™ project named Auctionutils.

Open the Application Deployment Descriptor Editor, and then turn to the Modules page.

In the Utility Jars field, click the Add button.

In the Open dialog box, select the Auctionutils item, and then click the Finish button:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.