File Dependency Builder

 

+

Search Tips   |   Advanced Search

 

Using the Import and Export functionality available in the Eclipse File menu, we can share files among projects in the form of a WebSphere Portlet Factory Archive. This archive is essentially a Zip file of various project components and artifacts.

The File Dependency Builder is useful when you export a collection of project files to share with another developer in the form of an archive Zip file. In the File Dependency builder we can specify any files that must be included in the archive Zip.

Files exhibiting dependencies in a model might include HTML files, image files, Java source files and class files, and any other models that the current model uses for Linked Model or Import Model builder calls.

If you are including Java source or class files in the model's dependency list, make sure that they are in (or below) one of the following directories:

  • WEB-INF/work/source
  • WEB-INF/work/classes
  • WEB-INF/classes

Ensuring that Java source and class files are in these directories is required so that when you install the package on another machine, any...

  • models
  • builders
  • projects
  • etc....

...using the Java source and class files can find them.

Using the File Dependency builder adds the files you specify in the List input to the dependencies list when this model is packaged for export.

When you export a package containing this model, clicking the Dependencies ... button will display a list of files you specified.

 

Create a WebSphere Portlet Factory Archive

Use the Eclipse Export/Import function available from the Eclipse File menu. To create an export file:

  1. Select File | Export... to open the Export wizard.

  2. In the Wizard select WebSphere Portlet Factory Archive and click Next.

  3. Note that the Export dialog displays a list of projects in the left pane and various properties files in the right pane.

  4. In the left pane, select the project components you want to include. In the right pane, select any properties files to include.

  5. If any of the items you selected have dependencies on other files, press the Select Dependencies button and choose the dependent files to include in the archive.

  6. In the To Archive input, enter the location where you want the Portlet Factory Archive file saved.

  7. Press Finish to create and save the archive file.

 

Specifying Inputs

The File Dependency builder takes the following inputs...

Input name Description
Name Enter a name for this builder call. The designer tool displays this name in the builder call list.
List Create a list of files that this model needs.

For example, image files, HTML files used as in imported pages, and Java source and class files can all be added to the dependencies list.

When you export the model, Eclipse automatically adds files in this list to the collection of files in the Zip file.

 

Related Topics ...

Overview: Packaging Applications