Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.
stevebillings edited this page Oct 8, 2015 · 5 revisions

Summary

The 6x connector can be used in all Black Duck utilities that need to interface with a 6.x Protex or Code Center server.

Build

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

Usage

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.

Clone this wiki locally