Directory Junction

While working with Hybris project many a times we want to keep Hybris Commerce Suite(Hybris directory) and custom and config folder separately to keep our codebase clean without any adverse impact on development. This is achieved using “Directory Junction”.

Suppose the custom folder of Hybris project is cloned in windows machine at C:\hybrisproject\custom and Hybris bin directory is located at D:\hybris\bin, then perform following steps to link custom folder with Hybris bin directory.

  1. Navigate to Hybris bin directory (D:\hybris\bin).
  2. Open command prompt and execute the command:
    D:\hybris\bin>mklink /J custom C:\hybrisproject\custom

    Note: To create symlink instead of directory junction, open cmd as administrator and use mklink /D instead of mklink /J