Contents

pluginWorkDirectoryURL

The URL of a writable directory into which the plugin or the build commands it constructs can write anything it wants.

Declaration

let pluginWorkDirectoryURL: URL

Discussion

This could include generated source files to processed further, as well as any caches used by the build tool or the plugin. The plugin is in complete control of what is written under this directory, and the package manager preserves the contents between builds.

A plugin may create a separate subdirectory for each command it creates, with the command configured to write its output to that directory. The plugin may also create other directories for cache files and other file system content that either it or the command will need.

See Also

Inspecting the Context