Package com.maxxton.microdocs.publisher
Class MicroDocsPublisher
- java.lang.Object
-
- com.maxxton.microdocs.publisher.MicroDocsPublisher
-
public class MicroDocsPublisher extends java.lang.ObjectPublish or check reports to the MicroDocs server
-
-
Constructor Summary
Constructors Constructor Description MicroDocsPublisher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CheckResponsecheckProject(ServerConfiguration configuration, java.io.File microDocsReport, java.lang.String projectName, java.lang.String env)Check report at the MicroDocs server for problemsstatic booleanprintCheckResponse(CheckResponse response, java.io.File rootDir)Print check response to consolestatic CheckResponsepublishProject(ServerConfiguration configuration, java.io.File microDocsReport, java.lang.String projectName, java.lang.String groupName, java.lang.String version, boolean failOnProblems, java.lang.String env)Publish report on the MicroDocs server
-
-
-
Method Detail
-
publishProject
public static CheckResponse publishProject(ServerConfiguration configuration, java.io.File microDocsReport, java.lang.String projectName, java.lang.String groupName, java.lang.String version, boolean failOnProblems, java.lang.String env) throws java.io.IOException
Publish report on the MicroDocs server- Parameters:
configuration- the config objectmicroDocsReport- the reportprojectName- the current project namegroupName- the group nameversion- the version of the apifailOnProblems- fail in case of compatibility problemsenv- current environment- Returns:
- check response
- Throws:
java.io.IOException- possible IO exception when file is not found
-
checkProject
public static CheckResponse checkProject(ServerConfiguration configuration, java.io.File microDocsReport, java.lang.String projectName, java.lang.String env) throws java.io.IOException
Check report at the MicroDocs server for problems- Parameters:
microDocsReport- the reportconfiguration- configuration serverprojectName- the current project nameenv- current environment- Returns:
- check response
- Throws:
java.io.IOException- possible IO exception when file is not found
-
printCheckResponse
public static boolean printCheckResponse(CheckResponse response, java.io.File rootDir)
Print check response to console- Parameters:
response- the responserootDir- the rootdir- Returns:
- succeed or failed
-
-