Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for InvokerRequest (0.2 sec)

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

     *
     * @param <O> the type of {@link Options} used for this request, extending the base {@link Options} interface
     *
     * @since 4.0.0
     */
    @Immutable
    @Experimental
    public interface InvokerRequest<O extends Options> {
        /**
         * The parser request this instance was created from.
         */
        @Nonnull
        ParserRequest parserRequest();
    
        /**
         * Shorthand for {@link Logger} to use.
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 17 08:06:47 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvoker.java

        @SuppressWarnings("MethodLength")
        @Override
        public int invoke(ForkedMavenInvokerRequest invokerRequest) throws InvokerException {
            requireNonNull(invokerRequest);
            validate(invokerRequest);
    
            ArrayList<String> cmdAndArguments = new ArrayList<>();
            cmdAndArguments.add(invokerRequest
                    .installationDirectory()
                    .resolve("bin")
                    .resolve(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Parser.java

     * This interface is responsible for interpreting the command-line input and constructing
     * the appropriate {@link InvokerRequest} object.
     *
     * @param <R> the type of {@link InvokerRequest} produced by this parser, extending {@link InvokerRequest}
     *
     * @since 4.0.0
     */
    @Experimental
    public interface Parser<R extends InvokerRequest<? extends Options>> {
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 04 12:23:10 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/local/DefaultLocalMavenInvoker.java

                super(invoker, invokerRequest);
            }
        }
    
        public DefaultLocalMavenInvoker(ProtoLookup protoLookup) {
            super(protoLookup);
        }
    
        @Override
        protected LocalContext createContext(MavenInvokerRequest<MavenOptions> invokerRequest) {
            return new LocalContext(this, invokerRequest);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/resident/DefaultResidentMavenInvoker.java

        protected LocalContext createContext(MavenInvokerRequest<MavenOptions> invokerRequest) {
            return residentContext
                    .computeIfAbsent(getContextId(invokerRequest), k -> new LocalContext(this, invokerRequest))
                    .copy(invokerRequest);
        }
    
        protected String getContextId(MavenInvokerRequest<MavenOptions> invokerRequest) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnenc/EncryptInvokerRequest.java

     * under the License.
     */
    package org.apache.maven.api.cli.mvnenc;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.cli.InvokerRequest;
    
    /**
     * Represents a request to invoke the Maven encryption tool.
     * This interface extends the general InvokerRequest, specializing it for encryption-related operations.
     *
     * <p>An EncryptInvokerRequest encapsulates all the necessary information needed to perform
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 03 16:03:55 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Invoker.java

     *
     * @since 4.0.0
     */
    @Experimental
    public interface Invoker<R extends InvokerRequest<? extends Options>> extends AutoCloseable {
        /**
         * Invokes the Maven application using the provided {@link InvokerRequest}.
         * This method is responsible for executing the Maven command or build
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 03 16:03:55 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/MavenInvoker.java

         *
         * @param invokerRequest the request containing all necessary information for the Maven invocation
         * @return an integer representing the exit code of the Maven invocation (0 typically indicates success)
         * @throws InvokerException if an error occurs during the Maven invocation process
         */
        @Override
        int invoke(@Nonnull R invokerRequest) throws InvokerException;
    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. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/DefaultEncryptInvoker.java

                if (context.invokerRequest.options().goals().isEmpty()
                        || context.invokerRequest.options().goals().get().size() != 1) {
                    return badGoalsErrorMessage("No goal or multiple goals specified, specify only one goal.", context);
                }
    
                String goalName = context.invokerRequest.options().goals().get().get(0);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/MavenInvokerRequest.java

     * under the License.
     */
    package org.apache.maven.api.cli.mvn;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.cli.InvokerRequest;
    
    /**
     * Represents a request to invoke Maven.
     * This interface extends the general {@link InvokerRequest}, specializing it for Maven-specific operations.
     *
     * <p>A {@link MavenInvokerRequest} encapsulates all the necessary information needed to perform
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 03 16:03:55 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top