Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for ParserException (0.12 sec)

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

     */
    @Experimental
    public class ParserException extends MavenException {
        /**
         * Constructs a new ParserException with the specified detail message.
         *
         * @param message the detail message explaining the cause of the exception
         */
        public ParserException(String message) {
            super(message);
        }
    
        /**
         * Constructs a new ParserException with the specified detail message and cause.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 03 16:03:55 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/DefaultEncryptParser.java

        }
    
        @Override
        protected List<EncryptOptions> parseCliOptions(LocalContext context) throws ParserException {
            return Collections.singletonList(parseEncryptCliOptions(context.parserRequest.args()));
        }
    
        protected CommonsCliEncryptOptions parseEncryptCliOptions(List<String> args) throws ParserException {
            try {
                return CommonsCliEncryptOptions.parse(args.toArray(new String[0]));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

                if (mavenHome == null) {
                    throw new ParserException("local mode requires " + Constants.MAVEN_HOME + " Java System Property set");
                }
                result = getCanonicalPath(Paths.get(mavenHome));
            }
            return result;
        }
    
        protected Path getUserHomeDirectory(LocalContext context) throws ParserException {
            if (context.parserRequest.userHome() != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/BaseMavenParser.java

            }
            return result;
        }
    
        protected O parseMavenCliOptions(List<String> args) throws ParserException {
            return parseArgs(Options.SOURCE_CLI, args);
        }
    
        protected O parseMavenConfigOptions(Path configFile) throws ParserException, IOException {
            try (Stream<String> lines = Files.lines(configFile, Charset.defaultCharset())) {
                List<String> args =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/MavenParser.java

         * @return the parsed {@link MavenInvokerRequest}
         * @throws ParserException if there's an error during parsing of the request
         * @throws IOException if there's an I/O error during the parsing process
         */
        @Nonnull
        R parse(@Nonnull ParserRequest parserRequest) throws ParserException, IOException;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 03 16:03:55 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenParser.java

        @Override
        protected MavenOptions parseArgs(String source, List<String> args) throws ParserException {
            try {
                return CommonsCliMavenOptions.parse(source, args.toArray(new String[0]));
            } catch (ParseException e) {
                throw new ParserException("Failed to parse source " + source, e.getCause());
            }
        }
    
        // TODO: same is in DefaultMavenParser!!! (duplication)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/forked/ForkedMavenParser.java

         * @return the parsed ForkedMavenInvokerRequest
         * @throws ParserException if there's an error during parsing of the request
         * @throws IOException if there's an I/O error during the parsing process
         */
        @Nonnull
        ForkedMavenInvokerRequest parse(@Nonnull ParserRequest parserRequest) throws ParserException, IOException;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 03 16:03:55 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnenc/EncryptParser.java

         * @return the parsed EncryptInvokerRequest
         * @throws ParserException if there's an error during parsing of the request
         * @throws IOException if there's an I/O error during the parsing process
         */
        @Nonnull
        EncryptInvokerRequest parse(@Nonnull ParserRequest parserRequest) throws ParserException, IOException;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 03 16:03:55 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Parser.java

         * @return the parsed InvokerRequest
         * @throws ParserException if there's an error during parsing of the command or arguments
         * @throws IOException if there's an I/O error during the parsing process
         */
        @Nonnull
        default R mvn(@Nonnull String[] args, @Nonnull Logger logger, @Nonnull MessageBuilderFactory messageBuilderFactory)
                throws ParserException, IOException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 04 12:23:10 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenParser.java

        }
    
        @Override
        protected MavenOptions parseArgs(String source, List<String> args) throws ParserException {
            try {
                return CommonsCliMavenOptions.parse(source, args.toArray(new String[0]));
            } catch (ParseException e) {
                throw new ParserException("Failed to parse source " + source + ": " + e.getMessage(), e.getCause());
            }
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top