Products sharing a common source framework

Layout on file system

Steps for defining corresponding 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 "Project1" in the Project name field. Click Next.

    New VJET Project wizard

  4. On the next page, Select "Project1" 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:\Project1\SourceFile directory.

    Link Source dialog

  6. Click Finish to validate and close the dialog.

  7. Again, Select "Project1" and click Link additional source link in Details pane or button Link Additional Source to Project in view bar.

    VJET Project Source setup

  8. In Link Source click Browse.... and choose the C:\ProjectFramework\SourceFile directory.

    Type "FWSourceFile" in the Folder name field.

    Link Source dialog

  9. Click Finish to validate and close the dialog.

    Your project source setup now looks as follows:

    VJET Project Source final setup

  10. Click Finish.
  11. Create project "Project2" repeating steps 2 to 5 choosing C:\Project2\SourceFile directory for source folder instead.

  12. Click on Finish to create the project immediately.

  13. Now, we'll see how to add a linked source folder when project is already created in workspace...

    Edit project "Project2" properties and select VJET Builder Path page.

    On Source tab, click Link Source....

    VJET Build Path Properties Source tab

  14. In Link Source click Browse.... and choose the C:\ProjectFramework\SourceFile directory.

    Type "src-common" in the Folder name field.

    Link Source dialog

  15. Click Finish to validate and close the dialog.

    Click OK to apply project "Project2" properties changes.

  16. You now have two VJET projects which respectively contain the sources of "Project1" and "Project2" and which are using the sources of "ProjectFramework".

    Created VJET projects in Workspace

Note: Files in "FWFramework" are shared. So editing "TestFW.js" in "Project1" will modify "TestFW.js" in "Project2".

Related reference