From 60663817b1987b58e0de567c86a778b8ab35a53f Mon Sep 17 00:00:00 2001 From: Bert Frees Date: Thu, 6 Jun 2019 14:53:42 +0200 Subject: [PATCH] Create two versions: a "standalone" version and a normal version Only the "standalone" version includes the binaries and tables. --- pom.xml | 45 ++++-- .../{test-jar => test-standalone-jar}/pom.xml | 5 +- .../org/liblouis/EmbeddedTableResolver.java | 152 ++++++++++++++++++ src/main/java/org/liblouis/Louis.java | 151 ++--------------- 4 files changed, 202 insertions(+), 151 deletions(-) rename src/it/{test-jar => test-standalone-jar}/pom.xml (92%) create mode 100644 src/main/java/org/liblouis/EmbeddedTableResolver.java diff --git a/pom.xml b/pom.xml index 43030fb..a4b577e 100644 --- a/pom.xml +++ b/pom.xml @@ -134,23 +134,18 @@ build-helper-maven-plugin 3.0.0 + - add-resources - generate-resources + add-test-resources + generate-test-resources - add-resource + add-test-resource - - target/dependency/share/liblouis/tables - org/liblouis/resource-files/tables - - target/dependency/lib/x86_64-MacOSX-gpp/shared @@ -194,6 +189,10 @@ maven-surefire-plugin + + + org/liblouis/DefaultTablesTest.java + pertest true @@ -212,6 +211,28 @@ false + + + bundle-standalone + package + + bundle + + + standalone + + + org/liblouis/resource-files/tables=target/dependency/share/liblouis/tables, + darwin/liblouis.dylib=target/dependency/lib/x86_64-MacOSX-gpp/shared/liblouis.dylib, + linux-x86/liblouis.so=target/dependency/lib/i386-Linux-gpp/shared/liblouis.so, + linux-x86-64/liblouis.so=target/dependency/lib/amd64-Linux-gpp/shared/liblouis.so, + win32-x86/liblouis.dll=target/dependency/bin/i686-w64-mingw32-gpp/liblouis.dll, + win32-x86-64/liblouis.dll=target/dependency/bin/x86_64-w64-mingw32-gpp/liblouis.dll + + + + +