Skip to content

Commit

Permalink
Merge branch 'release-2.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
charphi committed Jan 15, 2019
2 parents 6a495a5 + ff4a4d6 commit 865da3a
Show file tree
Hide file tree
Showing 198 changed files with 4,847 additions and 6,914 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
/spreadsheet/*/target/
/demetra-tck/target/
/demetra-workspace/target/
/jdr/target
/jdr/nbproject/
/jtss/nbproject/
42 changes: 31 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,46 @@
language: java
jdk:
- oraclejdk8
- openjdk11

cache:
directories:
- $HOME/.m2
env:
global:
- DEPLOY_JDK=oraclejdk8
- DEPLOY_REPO=jdemetra/jdemetra-core
- DEPLOY_BIN=jtstoolkit/target/demetra-tstoolkit-*.jar

deploy:
# SNAPSHOTS from develop & jdk8
# Maven snapshots from develop branch
- provider: script
script: mvn deploy -Dmaven.test.skip -s .travis.settings.xml -P deploy-snapshots
skip_cleanup: true
on:
branch: develop
jdk: oraclejdk8
condition: $TRAVIS_PULL_REQUEST = "false"

# RELEASES from master & jdk8
tags: false
repo: "${DEPLOY_REPO}"
condition: $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_JDK_VERSION == $DEPLOY_JDK

# Maven releases from tags
- provider: script
script: mvn deploy -Dmaven.test.skip -s .travis.settings.xml -P deploy-releases
skip_cleanup: true
on:
branch: master
jdk: oraclejdk8
condition: $TRAVIS_PULL_REQUEST = "false"
tags: true
repo: "${DEPLOY_REPO}"
condition: $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_JDK_VERSION == $DEPLOY_JDK

# Github releases from tags
- provider: releases
api_key: "${GITHUB_KEY}"
skip_cleanup: true
draft: true
file_glob: true
file: "${DEPLOY_BIN}"
on:
tags: true
repo: "${DEPLOY_REPO}"
condition: $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_JDK_VERSION == $DEPLOY_JDK

cache:
directories:
- $HOME/.m2
2 changes: 1 addition & 1 deletion commonprovider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>eu.europa.ec.joinup.sat</groupId>
<artifactId>demetra-parent</artifactId>
<version>2.2.1</version>
<version>2.2.2</version>
</parent>

<artifactId>demetra-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion demetra-tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>eu.europa.ec.joinup.sat</groupId>
<artifactId>demetra-parent</artifactId>
<version>2.2.1</version>
<version>2.2.2</version>
</parent>

<artifactId>demetra-tck</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion demetra-workspace/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>eu.europa.ec.joinup.sat</groupId>
<artifactId>demetra-parent</artifactId>
<version>2.2.1</version>
<version>2.2.2</version>
</parent>

<artifactId>demetra-workspace</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import internal.workspace.file.xml.XmlGenericWorkspaceItem;
import internal.io.JaxbUtil;
import java.io.IOException;
import java.nio.file.FileSystemException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Map;
Expand All @@ -37,7 +38,9 @@ static boolean isValid(Path file) throws IOException {
try {
unmarshalIndex(file);
return true;
} catch (JAXBException ex) {
} catch (FileSystemException ex) {
throw ex;
} catch (IOException | JAXBException ex) {
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import internal.workspace.file.xml.XmlLegacyWorkspaceItem;
import internal.io.JaxbUtil;
import java.io.IOException;
import java.nio.file.FileSystemException;
import java.nio.file.Path;
import java.util.Map.Entry;
import java.util.function.Consumer;
Expand All @@ -46,7 +47,9 @@ static boolean isValid(Path file) throws IOException {
try {
unmarshalIndex(file);
return true;
} catch (JAXBException ex) {
} catch (FileSystemException ex) {
throw ex;
} catch (IOException | JAXBException ex) {
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion jbench/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>eu.europa.ec.joinup.sat</groupId>
<artifactId>demetra-parent</artifactId>
<version>2.2.1</version>
<version>2.2.2</version>
</parent>

<artifactId>jbench</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jdbcprovider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>eu.europa.ec.joinup.sat</groupId>
<artifactId>demetra-parent</artifactId>
<version>2.2.1</version>
<version>2.2.2</version>
</parent>

<artifactId>demetra-jdbc</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
*/
public abstract class ResultSetFunc<T> implements DbUtil.Func<ResultSet, T, SQLException> {

@Nonnull
public static ResultSetFunc<String> onNull() {
return NullResultSetFunc.INSTANCE;
}

@Nonnull
public static ResultSetFunc<String> onGetString(final int columnIndex) {
return new ResultSetFunc<String>() {
Expand Down Expand Up @@ -99,6 +104,16 @@ public static ResultSetFunc<Number> onNumber(@Nonnull ResultSetMetaData metaData
return result != null ? result : compose(columnIndex, numberParser);
}

private static final class NullResultSetFunc extends ResultSetFunc<String> {

static final ResultSetFunc<String> INSTANCE = new NullResultSetFunc();

@Override
public String apply(ResultSet input) throws SQLException {
return null;
}
}

@Nullable
private static ResultSetFunc<java.util.Date> dateBySqlType(int columnType, final int columnIndex) {
switch (columnType) {
Expand Down
56 changes: 0 additions & 56 deletions jdr/pom.xml

This file was deleted.

82 changes: 0 additions & 82 deletions jdr/src/main/java/demetra/algorithm/IProcResults.java

This file was deleted.

Loading

0 comments on commit 865da3a

Please sign in to comment.