diff --git a/pom.xml b/pom.xml index a070fc3..d5512e7 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 1.8 1.3.1 - 1.1.0 + 1.3.1 0.4.0 UTF-8 diff --git a/src/main/java/org/cryptomator/cli/CryptomatorCli.java b/src/main/java/org/cryptomator/cli/CryptomatorCli.java index a59a85a..76ec3df 100644 --- a/src/main/java/org/cryptomator/cli/CryptomatorCli.java +++ b/src/main/java/org/cryptomator/cli/CryptomatorCli.java @@ -17,6 +17,7 @@ import org.cryptomator.cryptofs.CryptoFileSystemProperties; import org.cryptomator.cryptofs.CryptoFileSystemProvider; import org.cryptomator.frontend.webdav.WebDavServer; +import org.cryptomator.frontend.webdav.servlet.WebDavServletController; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -69,7 +70,8 @@ private static void startup(Args args) throws IOException { String vaultPassword = args.getVaultPassword(vaultName); CryptoFileSystemProperties properties = CryptoFileSystemProperties.cryptoFileSystemProperties().withPassphrase(vaultPassword).build(); Path vaultRoot = CryptoFileSystemProvider.newFileSystem(vaultPath, properties).getPath("/"); - server.createWebDavServlet(vaultRoot, vaultName); + WebDavServletController servlet = server.createWebDavServlet(vaultRoot, vaultName); + servlet.start(); } waitForShutdown(() -> {