-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The 6x connector can be used in all Black Duck utilities that need to interface with a 6.x Protex or Code Center server.
mvn clean install
Release versions of the 6x connector is available on JCenter or directly from the Black Duck Bintray page: https://bintray.com/bds/sdk
The 6x connector also exposes the base Common Framework library which allows for quick utility scaffolding and configuration file initialization. The basic steps are as follows:
Create a configuration manager and specify the application type. Configuration manager should be extended per utility.
APPLICATION appType = APPLICATION.PROTEX;
ConfigurationManager cf = new ConfigurationManager(configFileLocation, appType);
Create a Protex Server Wrapper (same applies for Code Center) with the configuration manager.
boolean useAuth = true;
ProtexServerWrapper psw = new ProtexServerWrapper(cf.getServerBean(), cf , useAuth );
The server bean contains the connectivity information specified in the configuration file.
Use the server wrapper to perform tasks against Protex For example: Get a project
ProjectPojo protexProject = psw.getProjectByName("MyProtexProject");
The server wrapper provides direct access to all the individual APIs allowing you to perform project, identification, codematching, etc tasks against Protex or Code Center.