Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ExitException (0.05 sec)

  1. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerException.java

         * carried exit code will be returned from invoker {@link Invoker#invoke(InvokerRequest)} method.
         */
        public static final class ExitException extends InvokerException {
            private final int exitCode;
    
            public ExitException(int exitCode) {
                super("EXIT=" + exitCode);
                this.exitCode = exitCode;
            }
    
            public int getExitCode() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 10:47:37 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                            throw new ExitException(1);
                        }
                    } else {
                        System.err.println(
                                "POM file " + arg + " specified with the -f/--file command line argument does not exist");
                        throw new ExitException(1);
                    }
                    break;
                } else {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 27 13:24:03 UTC 2025
    - 78.1K bytes
    - Viewed (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java

                                        .stdErr(stderr)
                                        .embedded(true)
                                        .build()));
                    } catch (InvokerException.ExitException e) {
                        exitCode = e.getExitCode();
                        exception = e;
                    } catch (Exception e) {
                        exception = e;
                    }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 21 12:17:55 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                                        .get());
                    }
                    return doInvoke(context);
                } catch (InvokerException.ExitException e) {
                    // contract of ExitException is that nothing needed by us
                    throw e;
                } catch (Exception e) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            PrintStream oldOut = System.out;
            System.setOut(new PrintStream(systemOut));
    
            // when
            try {
                cli.cli(cliRequest);
            } catch (MavenCli.ExitException exitException) {
                // expected
            } finally {
                // restore sysout
                System.setOut(oldOut);
            }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 30.9K bytes
    - Viewed (0)
Back to top