JDeveloper 11g Working Sets: How To Share Them With Your Team
By Sandra Muller on Oct 10, 2008
In JDeveloper 11g, the Working Sets feature has improved: instead of having to choose a Working Set for each project, you can now do it for the whole Application (and get a subset of each project in the application). And even better, you can do it in the Application Navigator as opposed to only in the System Navigator (the System Navigator does not exist anymore in 11g).
A working set allows you to define a set of files (a subset of project source path contents) that you want to work with. For large projects, you may want to work with a small subset of the source files (for example, all the files in a given package, plus a few others). Typically, you would perform the following actions scoped to the working set:
- Find usages
- Search in Files
When you have defined some useful working sets, you may want to exchange them with your fellow development team members. 2 years ago I blogged about how to share JDeveloper 10.1.3 Working Sets with your team, and here is how to do that in JDeveloper 11.
- Open [JDevWLSHome]/jdeveloper/system/system220.127.116.11.31.51.56/o.ide/projects folder and find the .jws file starting with the name of your JDeveloper Application, for example Base08345889adfc01e0ffd7dd7bfa1c6234.jws for an application called Base.
- Open this file, and you will see XML code starting with <hash n="working-sets"> that specifies your working sets.
Now you can either copy this piece of xml code, e-mail it to your colleagues and they can paste it in their application working sets file, or you can make sure that you all use the same application working sets file that is available from a common source. The latter is explained below.
- Copy (and possibly rename) this application working sets file to a location where it can be maintained centrally, but everyone has a local copy (for example in your Subversion repository).
- Tell everyone to change the relevant entry in their own [JDevWLSHome]/jdeveloper/system/system18.104.22.168.31.51.56/o.ide/projects/index2.xml to let it point to the new file. (And don't forget to do that yourself as well ;-)
Everyone will only have to make a change to point to the shared file, and if one person updates the working sets all others will be able to get the changes, if they have JDeveloper closed while updating their local copy.