SPFE Documentation | Collections > SPFE Development > Build directory structure

Build directory structure

The build systems produces a directory structure inside the build directory. Understanding the build directory structure can help you debug problems with the build.

By default, the build directory is named spfebuild and is created in the user's home directory. You can change the location of the build directory by setting the environment variable SPFE_BUILD_DIR.

The build script creates a directory for the content set being built, which is named using the content set id (configured in /content-set/content-set-id). Inside this directory it creates a directory named config which contains the consolidated configuration file, with the name spfe-config.xml.

The build then creates two additional directories in the content set directory, build, where all the temporary files used by the build are created, and output, where the output is created.

Inside the build directory, there are three directories, catalogs, where the link catalogs are created, topic-sets, where the each stage of the topic set build is created, and tocs, where the temporary TOC files are created. The link catalogs and temporary TOCs are located outside of the topic set directories because they are used by all topic set builds.

Inside the topic-sets directory, a directory is created for each topic set in the build, with its name matching the topic-set-id of each topic set.

Inside each of these topic set directories, the following files and directories are created: