Previous Next
Cross-platform setup -- Windows side

This section goes through the steps that you must complete on Windows for configuring SNiFF+ for cross-platform development.
Initial remarks
No team directories need to be created on the Windows side, since all project-relevant files are located on a Unix machine (in this example, the name of the machine is
BRUTUS ). The only required directory is
Project1/cross
This directory should be created in each team member's home directory.
Note that standard Windows UNC notation (e.g.,
\\brutus\Projects ) cannot be used when specifying directories in SNiFF+. As a result, network resources must be mapped to a network drive. In this example, we assume that \\brutus\Projects is mapped to the F drive.
Setting necessary variables and links
We are now ready to set the variables and links necessary on the Windows side for cross-platform development.
In the shell

  1. Set an environment variable called WS_CROSS to the root of your shared working environments on Unix. In this example, WS_CROSS would be set to:
    F:\Projects\work\cross
    (Remember that
    /Projects/work/cross contains the individual root directories of the RWE, SSWE and SOWE.)
    An environment variable called
    WS_CROSS is now set on both Unix and Windows to the same directory (which is physically located on the Unix side).
  2. For each user, set an environment variable called HOME . In this example HOME for user1 would be set to HOME=D:\Users\user1 . For user2 , HOME would be set to HOME=D:\Users\user2 .
    (Remember that all home directories on Windows in this example are located in the
    D:\Users\ directory.)
  3. Launch SNiFF+.
In SNiFF+
  1. Choose Tools > Preferences... in any open SNiFF+ tool.
    The Preferences dialog appears.
  2. Select the Tools > Working Environments node.
  3. Enter $WS_CROSS in the Working Environment Config. Directory field.
    Your working environment files will be stored in the directory specified by
    $WS_CROSS .
  4. Quit SNiFF+.
    The necessary attributes have now been set on both Unix and Windows. The next step is to set up the working environments necessary for cross-platform projects. To ensure that the project directories for the cross-platform project have the correct permissions, we recommend that you perform this setup on the Unix side.
Setting up the working environments
How to set up working environments is covered in the language-specific tutorials supplied with your SNiFF+ package. This section only covers those steps needed for cross-platform development. For instructions on how to define working environments and specify their root directories, please refer to the tutorial for your language.
The following steps should be completed by your Working Environments Administrator (WEAdmin).
  • Launch SNiFF+.

In SNiFF+
  1. Open the Working Environment tool by choosing Tools > Working Environments.
    The Working Environment tool appears.
  2. Choose Utils > User Permissions....
    The Users dialog appears.
  3. Give yourself (the WEAdmin) permission to create all four types of working environments.
  4. Create your working environments.
In the shell
Example Working Environments Tree
In this document, the working environment root directories are:

Based on this information, the Working Environments Tree for this example would be:

RWE: Unix_REPOSITORY (Directory $WS_CROSS/rwe)
SSWE: Unix_SSWE (Directory $WS_CROSS/sswe)
SOWE: Unix_SOWE (Directory $WS_CROSS/sowe)
PWE: PWE_Unix_user1 (Directory $HOME/Project1/cross ; Owner user1)
PWE: PWE_Unix_user2 (Directory $HOME/Project1/cross ; Owner user2)
PWE: PWE_Windows_user3 (Directory $HOME/Project1/cross ; Owner user3)
PWE: PWE_Windows_user4
(Directory $HOME/Project1/cross ; Owner user4)