Overlapping products in a common source tree

Layout on file system

Steps for defining corresponding "MyProject1" and "MyProject2" projects

  1. Click Open VJET perspective Window > Open Perspective > Other... > VJET to change to the VJET perspective.

  2. Click Open new VJET project wizard File > New > Other... > VJET Project to open the New VJET Project wizard.

  3. Type "MyProject1" in the Project name field. Click Next.

    New VJET Project wizard

  4. On the next page, Select "MyProject1" source folder.

    Click Link additional source link in Details pane or button Link Additional Source to Project in view bar.

    VJET Project Source setup

  5. In Link Source click Browse.... and choose the C:\VJETProject directory.

    Link Source dialog

  6. Click Finish to validate and close the dialog.

  7. Expand the "src" source folder. Select the three last packages and exclude them from build path using either Exclude from build path link or Exclude popup-menu item.

    Exclude packages from build path

  8. Your project source setup now looks as follows:

    VJET Project Source final setup

  9. Click Finish.

  10. Copy "MyProject1" project and paste it as "MyProject2".

    Edit "MyProject1" project properties and go on VJET Build Path page.

    In Source tab, expand "MyProject2/VJETProject" source folder, select Excluded and click Edit....

    VJET Build Path Properties Source tab

  11. In Inclusion and Exclusion Patterns, select "com/xyz/MyProject2" and click Edit....

    Inclusion and Exclusion Patterns dialog

  12. Change "com/xyz/MyProject2" to "com/xyz/MyProject1".

    Edit Exclusion Pattern dialog

  13. Click OK to enter the change.

    Click Finish to validate and close Inclusion and Exclusion Patterns dialog.

    Click OK again to validate "MyProject2" project properties changes.

  14. You now have two VJET Projects which respectively contain the sources of "MyProject1", "MyProject2".

Related reference