Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-cialini committed Aug 5, 2020
2 parents 77cd0d6 + 2cb8108 commit 4f7d554
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 25 deletions.
4 changes: 2 additions & 2 deletions api/batch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<artifactId>rtd-ms-transaction-filter-api</artifactId>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter.api</groupId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>
</parent>

<groupId>it.gov.pagopa.rtd.ms.transaction_filter.api</groupId>
<artifactId>rtd-ms-transaction-filter-api-batch</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void afterProcess(InboundTransaction item, @Nullable InboundTransaction r
File file = new File(
resolver.getResource(errorTransactionsLogsPath).getFile().getAbsolutePath()
.concat("/".concat(executionDate)) + "_transactionsFilteredRecords.csv");
FileUtils.writeStringToFile(file, buildCsv(item), Charset.defaultCharset());
FileUtils.writeStringToFile(file, buildCsv(item), Charset.defaultCharset(), true);
} catch (Exception e) {
if (log.isErrorEnabled()) {
log.error(e.getMessage(), e);
Expand Down
6 changes: 3 additions & 3 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
<parent>
<artifactId>rtd-ms-transaction-filter</artifactId>
<groupId>it.gov.pagopa.rtd.ms</groupId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</parent>

<groupId>it.gov.pagopa.rtd.ms.transaction_filter.api</groupId>
<artifactId>rtd-ms-transaction-filter-api</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

<packaging>pom</packaging>

<dependencies>
<dependency>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter</groupId>
<artifactId>rtd-ms-transaction-filter-core</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<parent>
<artifactId>rtd-ms-transaction-filter</artifactId>
<groupId>it.gov.pagopa.rtd.ms</groupId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</parent>

<groupId>it.gov.pagopa.rtd.ms.transaction_filter</groupId>
<artifactId>transaction-filter-app</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>


<dependencies>
<dependency>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter.api</groupId>
<artifactId>rtd-ms-transaction-filter-api-batch</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
Expand Down
10 changes: 5 additions & 5 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@
<parent>
<artifactId>rtd-ms-transaction-filter</artifactId>
<groupId>it.gov.pagopa.rtd.ms</groupId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</parent>

<groupId>it.gov.pagopa.rtd.ms.transaction_filter</groupId>
<artifactId>rtd-ms-transaction-filter-core</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>


<dependencies>
<dependency>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter.integration</groupId>
<artifactId>rtd-ms-transaction_filter-integration-sftp</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</dependency>
<dependency>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter.integration</groupId>
<artifactId>rtd-ms-transaction-filter-integration-jpa</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</dependency>
<dependency>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter.integration</groupId>
<artifactId>rtd-ms-transaction_filter-integration-rest</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions integration/jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<parent>
<artifactId>rtd-ms-transaction-filter-integration</artifactId>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter</groupId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</parent>

<groupId>it.gov.pagopa.rtd.ms.transaction_filter.integration</groupId>
<artifactId>rtd-ms-transaction-filter-integration-jpa</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>


<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<parent>
<artifactId>rtd-ms-transaction-filter</artifactId>
<groupId>it.gov.pagopa.rtd.ms</groupId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</parent>

<groupId>it.gov.pagopa.rtd.ms.transaction_filter</groupId>
<artifactId>rtd-ms-transaction-filter-integration</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

<packaging>pom</packaging>

Expand Down
4 changes: 2 additions & 2 deletions integration/rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<parent>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter</groupId>
<artifactId>rtd-ms-transaction-filter-integration</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</parent>

<groupId>it.gov.pagopa.rtd.ms.transaction_filter.integration</groupId>
<artifactId>rtd-ms-transaction_filter-integration-rest</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>


<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Value;
Expand All @@ -21,6 +22,7 @@

@Service
@RequiredArgsConstructor
@Slf4j
class HpanRestClientImpl implements HpanRestClient {

@Value("${rest-client.hpan.base-url}")
Expand Down Expand Up @@ -89,6 +91,10 @@ public File getList() {
tempFileFOS = new FileOutputStream(newFile);
IOUtils.copy(zipEntryIS, tempFileFOS);

if (log.isDebugEnabled()) {
log.debug("Matching " + zipEntry.getName() + " with " + listFilePattern);
}

if (zipEntry.getName().matches(listFilePattern)) {
tempFile = newFile;
}
Expand Down
4 changes: 2 additions & 2 deletions integration/sftp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter</groupId>
<artifactId>rtd-ms-transaction-filter-integration</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>
</parent>

<groupId>it.gov.pagopa.rtd.ms.transaction_filter.integration</groupId>
<artifactId>rtd-ms-transaction_filter-integration-sftp</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>


<dependencies>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>it.gov.pagopa.rtd.ms</groupId>
<artifactId>rtd-ms-transaction-filter</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

<packaging>pom</packaging>

Expand Down Expand Up @@ -64,13 +64,13 @@
<dependency>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter.integration</groupId>
<artifactId>rtd-ms-transaction_filter-integration-rest</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</dependency>
<dependency>
<groupId>it.gov.pagopa.rtd.ms.transaction_filter.integration</groupId>
<artifactId>rtd-ms-transaction_filter-integration-sftp</artifactId>
<version>1.0.1-RC2</version>
<version>1.0.0-RC3</version>

</dependency>
<dependency>
Expand Down

0 comments on commit 4f7d554

Please sign in to comment.