[#389] java.nio flag

This commit is contained in:
Michiel Borkent 2020-04-30 14:27:59 +02:00
parent 2451dc893c
commit e8ab72f111
3 changed files with 19 additions and 16 deletions

View file

@ -12,7 +12,8 @@ then
export BABASHKA_FEATURE_CORE_ASYNC=false export BABASHKA_FEATURE_CORE_ASYNC=false
export BABASHKA_FEATURE_CSV=false export BABASHKA_FEATURE_CSV=false
export BABAHSKA_FEATURE_TRANSIT=false export BABAHSKA_FEATURE_TRANSIT=false
export BABAHSKA_FEATURE_JAVA_TIME=false export BABASHKA_FEATURE_JAVA_TIME=false
export BABASHKA_FEATURE_JAVA_NIO=false
fi fi
BABASHKA_LEIN_PROFILES="+uberjar" BABASHKA_LEIN_PROFILES="+uberjar"

View file

@ -135,7 +135,8 @@
;; java.net.URL, see below ;; java.net.URL, see below
java.net.URLEncoder java.net.URLEncoder
java.net.URLDecoder java.net.URLDecoder
java.nio.file.OpenOption ~@(when features/java-nio?
'[java.nio.file.OpenOption
java.nio.file.CopyOption java.nio.file.CopyOption
java.nio.file.FileAlreadyExistsException java.nio.file.FileAlreadyExistsException
java.nio.file.FileSystem java.nio.file.FileSystem
@ -149,7 +150,7 @@
java.nio.file.attribute.FileAttribute java.nio.file.attribute.FileAttribute
java.nio.file.attribute.FileTime java.nio.file.attribute.FileTime
java.nio.file.attribute.PosixFilePermission java.nio.file.attribute.PosixFilePermission
java.nio.file.attribute.PosixFilePermissions java.nio.file.attribute.PosixFilePermissions])
java.security.MessageDigest java.security.MessageDigest
~@(when features/java-time? ~@(when features/java-time?
'[java.time.format.DateTimeFormatter '[java.time.format.DateTimeFormatter

View file

@ -8,6 +8,7 @@
(def csv? (not= "false" (System/getenv "BABASHKA_FEATURE_CSV"))) (def csv? (not= "false" (System/getenv "BABASHKA_FEATURE_CSV")))
(def transit? (not= "false" (System/getenv "BABASHKA_FEATURE_TRANSIT"))) (def transit? (not= "false" (System/getenv "BABASHKA_FEATURE_TRANSIT")))
(def java-time? (not= "false" (System/getenv "BABASHKA_FEATURE_JAVA_TIME"))) (def java-time? (not= "false" (System/getenv "BABASHKA_FEATURE_JAVA_TIME")))
(def java-nio? (not= "false" (System/getenv "BABASHKA_FEATURE_JAVA_NIO")))
;; excluded by default ;; excluded by default
(def jdbc? (= "true" (System/getenv "BABASHKA_FEATURE_JDBC"))) (def jdbc? (= "true" (System/getenv "BABASHKA_FEATURE_JDBC")))