Skip to content

Commit

Permalink
Update to version 1.1.0
Browse files Browse the repository at this point in the history
Compatible with HB2B 5
  • Loading branch information
sfieten committed Sep 3, 2020
1 parent 603a008 commit e23df2f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 1.1.0
###### 2020-09-03
### Changed
* Adapted to Holodeck B2B 5.x API

## 1.0.0
###### 2019-03-06
### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Issue tracker https://github.com/holodeck-b2b/pullrequest-trigger/issues

## Installation
### Prerequisites
This extension can be used with Holodeck B2B version 4.1.0 and later.
This extension can be used with Holodeck B2B version 5.0.0 and later.

### Configuration
To enable the trigger mechanism a _worker_ that will watch for _trigger documents_ has to be added to the
Expand Down
10 changes: 2 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.holodeckb2b.extensions</groupId>
<artifactId>pullrequest-trigger</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -50,16 +50,10 @@
</licenses>

<dependencies>
<dependency>
<groupId>org.holodeckb2b</groupId>
<artifactId>holodeckb2b-interfaces</artifactId>
<version>4.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.holodeckb2b</groupId>
<artifactId>holodeckb2b-core</artifactId>
<version>4.1.0</version>
<version>5.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.holodeckb2b.common.messagemodel.SelectivePullRequest;
import org.holodeckb2b.common.util.Utils;
import org.holodeckb2b.common.workerpool.AbstractWorkerTask;
import org.holodeckb2b.core.pmode.PModeUtils;
import org.holodeckb2b.interfaces.core.HolodeckB2BCoreInterface;
import org.holodeckb2b.interfaces.general.EbMSConstants;
import org.holodeckb2b.interfaces.messagemodel.IPullRequest;
Expand All @@ -41,7 +42,6 @@
import org.holodeckb2b.interfaces.pmode.IUserMessageFlow;
import org.holodeckb2b.interfaces.submit.MessageSubmitException;
import org.holodeckb2b.interfaces.workerpool.TaskConfigurationException;
import org.holodeckb2b.pmode.PModeUtils;

/**
* This worker reads all <i>"Pull Request trigger documents"</i> from the specified directory and then submits the
Expand Down Expand Up @@ -75,7 +75,8 @@ public void setParameters(final Map<String, ?> parameters) throws TaskConfigurat
log.error("Unable to configure task: Missing required parameter \"watchPath\"");
throw new TaskConfigurationException("Missing required parameter \"watchPath\"");
} else if (!Paths.get(pathParameter).isAbsolute())
watchPath = Paths.get(HolodeckB2BCoreInterface.getConfiguration().getHolodeckB2BHome(), pathParameter).toString();
watchPath = HolodeckB2BCoreInterface.getConfiguration().getHolodeckB2BHome()
.resolve(pathParameter).toString();
else
watchPath = pathParameter;

Expand Down

0 comments on commit e23df2f

Please sign in to comment.