Use the import and export wizards

Sharing projects using Project Interchange

If you are not using a repository or software configuration management (SCM) system, such as ClearCase, and you want to share projects with team members, you can use the Project Interchange feature.

There are many different ways that you can develop in a team environment and share projects and resources. One of the best methods is to use a team repository, such as ClearCase or CVS.

There are other ways that you can share projects and files. You can share an entire workspace by copying or archiving it; or you can export projects into EAR files, WAR files, JAR files, or simple ZIP files. Each of these methods has its own advantages and disadvantages that might not suit your needs. For example, exporting EAR files and WAR files is not optimized for the purpose of sharing, and you might lose metadata or waste time during a subsequent import.

Project Interchange sharing mechanism

A more optimal solution is to use the Project Interchange feature. When you export using Project Interchange, the entire project structure is maintained, including metadata files. You can also export several unrelated projects or include required projects for an entire application, like when you export an EAR file. The projects can then be easily imported into another workspace with a single action.

Tip: The Project Interchange mechanism exports projects as they exist in the workbench, including the project property that specifies the target server runtime for the project. If a user imports the exported project and does not have the same target server runtime installed, the project will not compile. This can be corrected by modifying the target server for the project.

Exporting projects for sharing

You can export projects using the Project Interchange export feature for the purpose of sharing projects with other developers.

When you export projects using Project Interchange, the entire project structure is maintained, including metadata files, and you have the convenience of including required projects for an entire application. The projects can then be easily imported into another workspace with a single action.

To export a project using the Project Interchange feature:

  1. In the Project Explorer, right-click the project that you want to export, and select Export.

  2. Select Project Interchange, and click Next.

    Export. Project Interchange

  3. Select the projects that you want to export:

    Export. Project Interchange. Select the projects

    • Click Select All to select all projects in the window.

    • Click Deselect All to clear all the check boxes.

    • Click Select Referenced to automatically select projects that are referenced by any of the currently selected projects.

  4. In the To zip file field, enter the full path, including the ZIP file name, where you want to export the selected projects.

  5. Click Finish.

The wizard exports the selected projects, including project structure and metadata, to the specified ZIP file. These projects can then be easily imported from the ZIP file into another workspace or file system by selecting the Project Interchange option on the Import wizard.

Importing shared projects

If you exported a project for sharing by using the Project Interchange export feature, you can import it into your workspace or file system while maintaining project structure and metadata.

To import projects from a Project Interchange ZIP file:

  1. Select File > Import.

  2. Select Project Interchange and click Next.

    Import. Project Interchange

  3. In the From ZIP file field, enter the full path of the ZIP file that contains the shared projects. Click Browse to locate the ZIP file on the file system. The Import wizard lists the projects that are in the ZIP file.

  4. Select the projects that you want to import.

    Import. Project Interchange. Select the projects

    • Click Select All to select all projects in the window.

    • Click Deselect All to clear all the check boxes.

    • Click Select Referenced to automatically select projects that are referenced by any of the currently selected projects.

  5. Click Finish.

The wizard imports the selected projects, including project structure and metadata, to your project workspace.

Importing resources from a ZIP file

You can use the Import wizard to EXTRACT files from a ZIP file into the Workbench.

  1. From the main menu bar, select File > Import. The Import wizard opens.

  2. Select ZIP file and click Next.

  3. Click the Browse button on the next page of the wizard, to select the ZIP files that contain the files you want to extract and import into the Workbench.

  4. In the import selection panes, use the following methods to select exactly the resources you want to add:

    ZIP file

    • Expand the hierarchies in the left pane and select or clear the checkboxes that represent the folders in the selected directory. Then in the right pane, select or clear checkboxes for individual files.

    • Click Filter Types to filter the current selection for files of a specific type.

    • Click Select All to select all resources in the directory, then go through and deselect the ones that you do not want to add.

    • Click Deselect All to deselect all resources in the directory, then go through and choose individual resources to add.

  5. Specify the Workbench project or folder that will be the import destination.

  6. When you have finished specifying your import options, click Finish.

Importing resources from the file system

You can use the Import Wizard to COPY files from a file system directory into the Workbench.

  1. From the main menu bar, select File > Import. The Import wizard opens.

  2. Select File System and click Next.

  3. Click the Browse button on the next page of the wizard to select the directories from which you would like to add the resources.

  4. In the import selection panes, use the following methods to select exactly the resources you want to add:

    Import from file system

    • Expand the hierarchies in the left pane and select or clear the checkboxes that represent the folders in the selected directory. Then in the right pane, select or clear checkboxes for individual files.

    • Click Filter Types to filter the current selection for files of a specific type.

    • Click Select All to select all resources in the directory, then go through and deselect the ones that you do not want to add.

    • Click Deselect All to deselect all resources in the directory, then go through and choose individual resources to add.

  5. Specify the Workbench project or folder that will be the import destination.

  6. When you have finished specifying your import options, click Finish.

    File system

Tip: You can also import folders and files by dragging them from the file system and dropping them in the Navigator view, or by copying and pasting.

Importing existing projects

You can use the Import Wizard to copy a project that exists in a different workspace, or one that previously existed in a workspace, into the Workbench.

  1. From the main menu bar, select File > Import. The Import wizard opens.

  2. Select Existing Project into Workspace and click Next.

  3. Click the Browse button on the next page of the wizard to select the project which you would like to import.

    Existing Project into Workspace

  4. Click Finish to start the import.

    This wizard creates a new Project from an Eclipse project in the file system. It DOES NOT copy the project to the workspace.

Tag libraries

Rational Developer incorporates a set of custom tag libraries from the Jakarta project. The New Web Project wizard displays a list of tag libraries you can incorporate when you create a new project. In addition, the product includes a tag library of JSP actions for database access (which conform to the JSP 1.1 syntax) and a wizard that enables you to import a JSP tag library for use in your projects. (To import a tag library, select File > Import > JSP Tag Library).

After you create the project, a Web deployment descriptor shortcut is generated and placed directly beneath your project name. This shortcut serves as an alias for the web.xml file, and defines the library tag names and attributes available to your project. The tag library JAR files are placed in the WEB-INF/lib folder.

The Libraries folder contains a representation of the tag libraries available to your application. Empty JAR icons indicate tag libraries that are internal to your application (those that you selected in the New Web Project wizard). Full JAR icons indicate tag libraries that are external to your application (those that are not copied to your workspace).

Professional hosting     Belorussian informational portal         Free SCBCD 1.3 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     Free IBM Certified Associate Developer Study Guide     Free SCJP 5.0 (Tiger) Study Guide     Free Mock Exam Engine     Free SCWCD 1.4 Study Guide     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide