-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: fix issues and failing tests after migration
ING-4375
- Loading branch information
Showing
51 changed files
with
259 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...sdihumboldt.hale.app.transform/resources/test/projects/arguments/hydro_arguments_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
-project | ||
platform:/plugin/eu.esdihumboldt.hale.app.transform.test/projects/hydro/project.halex | ||
RESOLVE:projects/hydro/project.halex | ||
-source | ||
platform:/plugin/eu.esdihumboldt.hale.app.transform.test/projects/hydro/hydro-source.gml.gz | ||
RESOLVE:projects/hydro/hydro-source.gml.gz | ||
-Sinspire.sds.localId | ||
1234 | ||
-filter | ||
name='River Rede' | ||
-filter-on | ||
River | ||
width='10.0' | ||
width='10.0' |
6 changes: 3 additions & 3 deletions
6
...mboldt.hale.app.transform/resources/test/projects/arguments/multitypes_arguments_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
-project | ||
platform:/plugin/eu.esdihumboldt.hale.app.transform.test/projects/multitype/project.halex | ||
RESOLVE:projects/multitype/project.halex | ||
-source | ||
platform:/plugin/eu.esdihumboldt.hale.app.transform.test/projects/multitype/multi-type-source.xml | ||
RESOLVE:projects/multitype/multi-type-source.xml | ||
-filter | ||
CQL:price>'11' | ||
-filter-on | ||
shirt | ||
name='Polo shirt green' | ||
-exclude-type | ||
shirt | ||
shirt |
4 changes: 2 additions & 2 deletions
4
...boldt.hale.app.transform/resources/test/projects/arguments/multitypes_arguments_file2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-project | ||
platform:/plugin/eu.esdihumboldt.hale.app.transform.test/projects/multitype/project.halex | ||
RESOLVE:projects/multitype/project.halex | ||
-source | ||
platform:/plugin/eu.esdihumboldt.hale.app.transform.test/projects/multitype/multi-type-source.xml | ||
RESOLVE:projects/multitype/multi-type-source.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 14 additions & 5 deletions
19
...convert.core/src/eu/esdihumboldt/hale/common/convert/core/StringToLocalDateConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,44 @@ | ||
/* | ||
* Copyright (c) 2020 wetransform GmbH | ||
* | ||
* | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License as | ||
* published by the Free Software Foundation, either version 3 of the License, | ||
* or (at your option) any later version. | ||
* | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this distribution. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* | ||
* Contributors: | ||
* wetransform GmbH <http://www.wetransform.to> | ||
*/ | ||
|
||
package eu.esdihumboldt.hale.common.convert.core; | ||
|
||
import java.time.LocalDate; | ||
import java.time.format.DateTimeFormatter; | ||
import java.time.format.DateTimeParseException; | ||
|
||
/** | ||
* Convert a {@link String} to a {@link LocalDate}. | ||
* | ||
* | ||
* @author Simon Templer | ||
*/ | ||
public class StringToLocalDateConverter extends AbstractStringToDateTimeTypeConverter<LocalDate> { | ||
|
||
private static DateTimeFormatter SLASH_FORMATTER = DateTimeFormatter.ofPattern("yyyy/MM/dd"); | ||
|
||
/** | ||
* @see eu.esdihumboldt.hale.common.convert.core.AbstractStringToDateTimeTypeConverter#parse(java.lang.String) | ||
*/ | ||
@Override | ||
protected LocalDate parse(String source) { | ||
return LocalDate.parse(source); | ||
try { | ||
return LocalDate.parse(source); | ||
} catch (DateTimeParseException e) { | ||
// try alternative format | ||
return LocalDate.parse(source, SLASH_FORMATTER); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.