1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 13:58:16 -05:00

* check JNA and GIO libs

This commit is contained in:
Reinhard Pointner 2012-11-25 05:36:06 +00:00
parent c6a883a538
commit f1b59c0a4a

View File

@ -3,6 +3,14 @@
// FileBot 2.62 (r993) // FileBot 2.62 (r993)
println net.sourceforge.filebot.Settings.applicationIdentifier println net.sourceforge.filebot.Settings.applicationIdentifier
// JNA Native: 3.5.0
try {
print 'JNA Native: '
println com.sun.jna.Native.nativeVersion
} catch(error) {
println error.cause
}
// MediaInfo: MediaInfoLib - v0.7.48 // MediaInfo: MediaInfoLib - v0.7.48
try { try {
print 'MediaInfo: ' print 'MediaInfo: '
@ -15,7 +23,7 @@ try {
try { try {
print '7-Zip-JBinding: ' print '7-Zip-JBinding: '
net.sourceforge.filebot.archive.SevenZipLoader.requireNativeLibraries() // load 7-Zip-JBinding native libs net.sourceforge.filebot.archive.SevenZipLoader.requireNativeLibraries() // load 7-Zip-JBinding native libs
println "OK" println 'OK'
} catch(Throwable error) { } catch(Throwable error) {
println error println error
} }
@ -23,7 +31,6 @@ try {
// Extended File Attributes // Extended File Attributes
try { try {
print 'Extended Attributes: ' print 'Extended Attributes: '
if (net.sourceforge.filebot.Settings.useExtendedFileAttributes()){ if (net.sourceforge.filebot.Settings.useExtendedFileAttributes()){
// create new temp file // create new temp file
def f = new File('.xattr-test') def f = new File('.xattr-test')
@ -34,9 +41,20 @@ try {
def payload = new Date() def payload = new Date()
xattr.setMetaData(payload) xattr.setMetaData(payload)
assert xattr.getMetaData() == payload assert xattr.getMetaData() == payload
println "OK" println 'OK'
} else { } else {
println "DISABLED" println 'DISABLED'
}
} catch(Throwable error) {
println error
}
// GIO and GVFS
try {
if (net.sourceforge.filebot.gio.GVFS.supported) {
print 'GVFS: '
assert net.sourceforge.filebot.gio.GVFS.defaultVFS != null
println 'OK'
} }
} catch(Throwable error) { } catch(Throwable error) {
println error println error