Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/main/java/org/polypheny/qtf/QTFConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
public class QTFConfig {

static Properties prop;

static OS os = Platform.getNativePlatform().getOS();

static {
prop = new Properties();
//see https://stackoverflow.com/questions/16343939/loading-properties-file-from-static-context
try ( InputStream input = QTFConfig.class.getClassLoader().getResourceAsStream( "config.properties" ) ) {
String configPath = "config_"+os.toString()+".properties";
try ( InputStream input = QTFConfig.class.getClassLoader().getResourceAsStream( configPath ) ) {
prop.load( input );
} catch ( IOException ex ) {
log.error( "Could not load properties" );
Expand Down
14 changes: 0 additions & 14 deletions src/main/resources/config.properties

This file was deleted.

9 changes: 9 additions & 0 deletions src/main/resources/config_linux.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

reconnectionTimeout = 5000
host = localhost
port = 8080
fuseCapacityGB = 1000

#linux:
libraryPath = /usr/lib/x86_64-linux-gnu/
libfuse = libfuse.so
9 changes: 9 additions & 0 deletions src/main/resources/config_mac.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

reconnectionTimeout = 5000
host = localhost
port = 8080
fuseCapacityGB = 1000

#mac
libraryPath = /usr/local/lib/
libfuse = libosxfuse.2.dylib
9 changes: 9 additions & 0 deletions src/main/resources/config_windows.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

reconnectionTimeout = 5000
host = localhost
port = 8080
fuseCapacityGB = 1000

#windows
libraryPath = C:\\Program Files (x86)\\WinFsp\\bin\\
libfuse = winfsp-x64.dll