This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions
  • 7,916,821 Comments

Discussions

reference a project in a different workspace?

618893
618893 Member Posts: 138
edited Sep 16, 2008 8:59PM in JDeveloper and ADF
Is it possible to reference a project in a different workspace (aka application)?
Or are you restricted only to the projects in the same workspace?

Answers

  • avrom
    avrom Member Posts: 370
    I'm not quite sure what you mean by "reference." If it's just a matter of coding against the classes you've developed in another workspace, you certainly can--even if you don't want to deploy the project as a library. Just set your current project's "additional classpath" to include the "classes" directory of the project you want to use.

    Even if, say, you want to use business components from the other project, you can "import" the other project's business components (select the business component package XML file to import them).

    If you want to do something fancy, like actually ensure the other project gets rebuilt every time one of your projects gets rebuilt, then I think the only way to go is to add the project to the current workspace. (A project can be in more than one workspace; just "add to workspace" and browse to the other project's jpr file.) I'm not terribly sure I recommend this except in extremis, though--if a project is open in two workspaces, dealing with, e.g., whose job it is to actually change files in it can be difficult.
This discussion has been closed.