File tree 1 file changed +2
-2
lines changed
src/main/java/de/donnerbart/split
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 7
7
import org .slf4j .Logger ;
8
8
import org .slf4j .LoggerFactory ;
9
9
10
- import java .io .File ;
11
10
import java .nio .file .Files ;
11
+ import java .nio .file .Paths ;
12
12
13
13
public class TestSplitMain {
14
14
@@ -31,7 +31,7 @@ public static void main(final @Nullable String @NotNull [] args) throws Exceptio
31
31
final var excludeGlob = arguments .excludeGlob != null ? arguments .excludeGlob : "**/*Abstract*" ;
32
32
final var workingDirectory = arguments .workingDirectory != null ?
33
33
arguments .workingDirectory .toAbsolutePath () :
34
- new File ( "" ). toPath ( ).toAbsolutePath ();
34
+ Paths . get ( System . getProperty ( "user.dir" ) ).toAbsolutePath ();
35
35
if (!Files .exists (workingDirectory )) {
36
36
System .out .println ("Working directory does not exist: " + workingDirectory );
37
37
System .exit (1 );
You can’t perform that action at this time.
0 commit comments