gnodet commented on code in PR #1061:
URL: https://github.com/apache/maven/pull/1061#discussion_r1151704300


##########
maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java:
##########
@@ -321,6 +323,46 @@ void initialize(CliRequest cliRequest) throws 
ExitException {
             }
         }
 
+        Path topdir = Paths.get(cliRequest.workingDirectory);
+        boolean isAltFile = false;
+        for (String arg : cliRequest.args) {
+            if (isAltFile) {
+                Path path = Paths.get(arg);
+                if (Files.isDirectory(path)) {

Review Comment:
   The `commandLine` variable is initialised in a following step.  Also, if we 
want to allow some interpolation in the command line arguments, we definitely 
need to compute this variable early.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to