Skip to content

Commit e92859a

Browse files
committed
Update compatibility with HB2B 5.1.x
1 parent e23df2f commit e92859a

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

CHANGELOG.MD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## 2.0.0
6+
######
7+
### Changed
8+
* Compatibility with Holodeck B2B 5.1.x
9+
510
## 1.1.0
611
###### 2020-09-03
712
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Issue tracker https://github.com/holodeck-b2b/pullrequest-trigger/issues
1212

1313
## Installation
1414
### Prerequisites
15-
This extension can be used with Holodeck B2B version 5.0.0 and later.
15+
This extension can be used with Holodeck B2B version 5.1.0 and later.
1616

1717
### Configuration
1818
To enable the trigger mechanism a _worker_ that will watch for _trigger documents_ has to be added to the

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>org.holodeckb2b.extensions</groupId>
77
<artifactId>pullrequest-trigger</artifactId>
8-
<version>1.1.0</version>
8+
<version>2.0.0</version>
99
<packaging>jar</packaging>
1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -53,7 +53,7 @@
5353
<dependency>
5454
<groupId>org.holodeckb2b</groupId>
5555
<artifactId>holodeckb2b-core</artifactId>
56-
<version>5.0.0</version>
56+
<version>5.1.0</version>
5757
<scope>provided</scope>
5858
</dependency>
5959
<dependency>

src/main/java/org/holodeckb2b/ebms3/pulling/trigger/filebased/WatchForTriggerFile.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828

2929
import org.holodeckb2b.common.messagemodel.PullRequest;
3030
import org.holodeckb2b.common.messagemodel.SelectivePullRequest;
31-
import org.holodeckb2b.common.util.Utils;
32-
import org.holodeckb2b.common.workerpool.AbstractWorkerTask;
31+
import org.holodeckb2b.common.workers.AbstractWorkerTask;
32+
import org.holodeckb2b.commons.util.FileUtils;
33+
import org.holodeckb2b.commons.util.Utils;
3334
import org.holodeckb2b.core.pmode.PModeUtils;
3435
import org.holodeckb2b.interfaces.core.HolodeckB2BCoreInterface;
3536
import org.holodeckb2b.interfaces.general.EbMSConstants;
@@ -126,7 +127,7 @@ public boolean accept(final File file) {
126127
HolodeckB2BCoreInterface.getMessageSubmitter().submitMessage(pullRequest);
127128
log.info("Pull Request based on " + f.getName() + " succesfully submitted to Holodeck B2B");
128129
// Change extension to reflect success
129-
Files.move(Paths.get(tFileName), Utils.createFileWithUniqueName(baseFileName + ".triggered")
130+
Files.move(Paths.get(tFileName), FileUtils.createFileWithUniqueName(baseFileName + ".triggered")
130131
, StandardCopyOption.REPLACE_EXISTING);
131132
}
132133
} catch (final Exception e) {
@@ -135,7 +136,7 @@ public boolean accept(final File file) {
135136
+ ". Details: " + e.getMessage());
136137
// Change extension to reflect error and write error information
137138
try {
138-
final Path rejectFilePath = Utils.createFileWithUniqueName(baseFileName + ".rejected");
139+
final Path rejectFilePath = FileUtils.createFileWithUniqueName(baseFileName + ".rejected");
139140
Files.move(Paths.get(tFileName), rejectFilePath, StandardCopyOption.REPLACE_EXISTING);
140141
writeErrorFile(rejectFilePath, e);
141142
} catch (IOException ex) {

0 commit comments

Comments
 (0)