This is an automated email from the ASF dual-hosted git repository. rouazana pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit abce10f0a930308a417678b5e1bd8e36983c296e Author: Gautier DI FOLCO <gdifo...@linagora.com> AuthorDate: Wed May 13 14:11:47 2020 +0200 JAMES-3179 Remove OsDetector --- .../apache/james/mailbox/maildir/OsDetector.java | 40 ---------------------- 1 file changed, 40 deletions(-) diff --git a/mailbox/maildir/src/test/java/org/apache/james/mailbox/maildir/OsDetector.java b/mailbox/maildir/src/test/java/org/apache/james/mailbox/maildir/OsDetector.java deleted file mode 100644 index 7e0fcd1..0000000 --- a/mailbox/maildir/src/test/java/org/apache/james/mailbox/maildir/OsDetector.java +++ /dev/null @@ -1,40 +0,0 @@ -/**************************************************************** - * Licensed to the Apache Software Foundation (ASF) under one * - * or more contributor license agreements. See the NOTICE file * - * distributed with this work for additional information * - * regarding copyright ownership. The ASF licenses this file * - * to you under the Apache License, Version 2.0 (the * - * "License"); you may not use this file except in compliance * - * with the License. You may obtain a copy of the License at * - * * - * http://www.apache.org/licenses/LICENSE-2.0 * - * * - * Unless required by applicable law or agreed to in writing, * - * software distributed under the License is distributed on an * - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * - * KIND, either express or implied. See the License for the * - * specific language governing permissions and limitations * - * under the License. * - ****************************************************************/ - -package org.apache.james.mailbox.maildir; - -import java.util.Locale; -import java.util.Optional; - -public class OsDetector { - - /** - * Return if the Test is run on windows - * - * @return windows - */ - public static boolean isWindows() { - return Optional.ofNullable(System.getProperty("os.name")) - .orElse("") - .toLowerCase(Locale.US) - .contains("win"); - } - - -} --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org