Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Improving logging to find cause of error #105

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public class DeployTestCatalog extends AbstractMojo {

@Parameter(defaultValue = "${galasa.bootstrap}", readonly = true, required = false)
private URL bootstrapUrl;


@Parameter(defaultValue = "${galasa.skip.bundletestcatatlog}", readonly = true, required = false)
private boolean typoSkip;
Expand Down Expand Up @@ -75,6 +74,7 @@ protected static boolean setCorrectBooleanValue(boolean correctSkip, boolean typ
}

public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("DeployTestCatalog - execute()");

if (skip || skipDeploy) {
getLog().info("Skipping Deploy Test Catalog");
Expand Down Expand Up @@ -113,7 +113,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
Properties bootstrapProperties = new Properties();
try {
URLConnection connection = bootstrapUrl.openConnection();
getLog().info("URLConnection: " + connection);
bootstrapProperties.load(connection.getInputStream());
getLog().info("bootstrapProperties loaded: " + bootstrapProperties);
} catch (Exception e) {
throw new MojoExecutionException("Unable to load the bootstrap properties", e);
}
Expand Down