Sharing Workspaces across the team

AnyJ's project files have a binary format. Using the 'Export' and 'Import' functions it is possible to save and restore the important parts of a project (e.g. mounted directories, path settings, keyboard shortcuts, external tools, etc. ). User specific settings such as syntax hilighting etc. are not stored using export.

The export/import functions create xml files ('.ajpr'). '.ajpr' files do not necessary define a complete workspace, it is possible to load several '.ajpr' configurations to one workspace. This enables you e.g. to only import a set of external tool configurations.

Exporting a Workspace Configuration



Editing the project file

The .ajpr file consists of several major sections, you can remove sections which shall not be part of your export. E.g. if you'd like to save your keyboard & menu shortcut configuration only, delete all sections except the 'Services' section.

It is possible to use AnyJ's symbolic variables in the configurations. E.g. ($SystemClasses) references the rt.jar of the current JDK, ($Source.SystemClasses) references the JDK sources if available (other important vars: ($outputDir), ($Tools), ($Source.Tools) ).

Usage of relative paths to make the project relocatable

The initial exported .ajpr file contains absolute paths. You can make them relative by editing the .ajpr file. Relative paths are resolved at import time. The directory of the .ajpr at import time defines the base directory used to ressolve relative paths. E.g. 'lib/myjar.jar' would ressolve to [directory of .ajpr file]/lib/myjar.jar. See also the examples in '[anyjinstalldir]/examples'.

Importing a Workspace Configuration

1. Create a new workspace if necessary.
2. Import the .ajpr by drag & drop or by using 'Workspace|Import .ajpr'