Skip to content

Commit

Permalink
Merge branch 'main' into docker
Browse files Browse the repository at this point in the history
  • Loading branch information
BWibo committed Nov 22, 2023
2 parents 945a57e + 3835aa8 commit a0ff1f4
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-citydb-tool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build citydb-tool

on: [push, pull_request]

jobs:
build:
runs-on: ${{matrix.os}}-latest
strategy:
matrix:
os: ['ubuntu', 'windows']
java: [ '11' ]
distribution: [ 'temurin' ]
fail-fast: false

steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Set up Java"
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: "Grant execute permission for gradlew"
run: chmod +x ./gradlew
- name: "Build with Gradle"
run: ./gradlew build
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Gradle build](https://img.shields.io/github/actions/workflow/status/3dcitydb/citydb-tool/build-citydb-tool.yml?logo=Gradle&logoColor=white&style=flat-square)

# citydb-tool

3D City Database 5.0 CLI to import/export city model data and to run database operations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ public URI getFileURI() {
}

private FileSystem getFileSystem() {
if (fileSystem == null) {
try {
fileSystem = FileSystems.getFileSystem(fileURI);
} catch (Throwable e) {
//
}
}

if (fileSystem == null) {
try {
fileSystem = FileSystems.newFileSystem(fileURI, Collections.emptyMap());
Expand Down

0 comments on commit a0ff1f4

Please sign in to comment.