From fe145284ee9ef0658e0ab0518b6bc8a2525ddcd6 Mon Sep 17 00:00:00 2001 From: Frederik Boster Date: Fri, 2 Oct 2020 16:05:17 +0200 Subject: [PATCH] [MJAVADOC-664] - Fix stale javadoc data detection on Windows. --- src/main/java/org/apache/maven/plugins/javadoc/StaleHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/javadoc/StaleHelper.java b/src/main/java/org/apache/maven/plugins/javadoc/StaleHelper.java index 2f7979e2a..1e585da1e 100644 --- a/src/main/java/org/apache/maven/plugins/javadoc/StaleHelper.java +++ b/src/main/java/org/apache/maven/plugins/javadoc/StaleHelper.java @@ -57,7 +57,7 @@ public static String getStaleData( Commandline cmd ) List ignored = new ArrayList<>(); List options = new ArrayList<>(); Path dir = cmd.getWorkingDirectory().toPath().toAbsolutePath().normalize(); - String[] args = cmd.getCommandline(); + String[] args = cmd.getArguments(); Collections.addAll( options, args ); for ( String arg : args ) {