This Mock VCS plugin acts as a fallback, should no supported VCS be detected,
as it is of VcsType.UNKOWN and has priority 0. However, it provides the all
required interfaces of a VersionControlSystem for ORT to function as if a VCS
were present. This makes it possible to scan software projects with no version
control or unsupported VCSs.
The plugin is kept simple and provides mostly hard coded return values.
- It's
DummyWorkingTreeis empty and only knows revisionmain. - As the
RemoteURLthe tree returns the localworkingDir(given via-i). - Upon calling
initWorkingTree, the plugin copies content of thevcs.urlinto the appropriate cache directory. So ORT can scan the project as is.
The template Gradle project was forked from ort-package-manager-plugin, which can be used to create a plugin for the OSS Review Toolkit.
- Clone this repository
- Execute
InstallDistjob in gradle - Take the resulting
build/install/MockVcsPlugin/MockVcsPlugin.jarand place it in theort/plugindirectory of your ORT installation. - Execute ort from
ort/bin/ort.