Skip to content

Commit

Permalink
Merge pull request #5328 from eclipse-vertx/minor-improvements
Browse files Browse the repository at this point in the history
Minor improvements
  • Loading branch information
vietj committed Sep 23, 2024
2 parents 8d688d3 + 2d96ba8 commit 479cd8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vertx-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<executions>
<execution>
<id>default-compile</id>
Expand All @@ -233,7 +232,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration>
<failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
<useModulePath>${vertx.testUseModulePath}</useModulePath>
Expand Down Expand Up @@ -320,7 +318,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<useModulePath>false</useModulePath>
</configuration>
Expand Down
13 changes: 13 additions & 0 deletions vertx-core/src/main/java/io/vertx/core/spi/file/FileResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

package io.vertx.core.spi.file;

import io.vertx.core.file.FileSystemOptions;
import io.vertx.core.file.impl.FileResolverImpl;

import java.io.Closeable;
import java.io.File;
import java.io.IOException;
Expand All @@ -31,6 +34,16 @@
*/
public interface FileResolver extends Closeable {

/**
* Create a file resolver.
*
* @param options the fs options
* @return the file resolver
*/
static FileResolver fileResolver(FileSystemOptions options) {
return new FileResolverImpl(options);
}

/**
* Resolve the file for the specified {@code fileName}.
*
Expand Down

0 comments on commit 479cd8c

Please sign in to comment.