Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for cwd (0.01 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

        };
    
        @Test
        void happy() {
            InvokerRequest invokerRequest =
                    subject.parseInvocation(ParserRequest.mvn(Arrays.asList("-e", "-X"), mock(MessageBuilderFactory.class))
                            .cwd(Path.of(System.getProperty("userDir")))
                            .userHome(Path.of(System.getProperty("userHome")))
                            .build());
    
            Assertions.assertTrue(invokerRequest.options().isPresent());
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java

                if (userToolchainsFileStr != null) {
                    userToolchainsFile = context.cwd.resolve(userToolchainsFileStr);
                }
            }
    
            Path installationToolchainsFile = null;
            if (context.options().altInstallationToolchains().isPresent()) {
                installationToolchainsFile = context.cwd.resolve(
                        context.options().altInstallationToolchains().get());
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 11 17:20:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                if (projectSettingsFileStr != null) {
                    projectSettingsFile = context.cwd.resolve(projectSettingsFileStr);
                }
            }
    
            Path installationSettingsFile = null;
            if (context.options().altInstallationSettings().isPresent()) {
                installationSettingsFile = context.cwd.resolve(
                        context.options().altInstallationSettings().get());
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenParser.java

            MavenOptions cliOptions = parseMavenCliOptions(context.parserRequest.args());
            result.add(cliOptions);
            // atFile option
            if (cliOptions.atFile().isPresent()) {
                Path file = context.cwd.resolve(cliOptions.atFile().orElseThrow());
                if (Files.isRegularFile(file)) {
                    result.add(parseMavenAtFileOptions(file));
                } else {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 14 12:35:44 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java

                            .build();
                    Files.writeString(pomFile, pomContent);
    
                    // Update context to use the temp directory
                    when(context.invokerRequest.cwd()).thenReturn(tempDir);
    
                    // Mock successful strategy execution
                    when(mockOrchestrator.executeStrategies(Mockito.any(), Mockito.any()))
                            .thenReturn(UpgradeResult.empty());
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ApplyTest.java

                            .build();
                    Files.writeString(pomFile, pomContent);
    
                    // Update context to use the temp directory
                    when(context.invokerRequest.cwd()).thenReturn(tempDir);
    
                    // Mock successful strategy execution
                    when(mockOrchestrator.executeStrategies(Mockito.any(), Mockito.any()))
                            .thenReturn(UpgradeResult.empty());
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 10:39:17 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerRequest.java

         * This is typically the directory from which Maven was invoked.
         *
         * @return the current working directory path
         */
        @Nonnull
        Path cwd();
    
        /**
         * Returns the Maven installation directory.
         * This is usually set by the Maven launcher script using the "maven.home" system property.
         *
         * @return the Maven installation directory path
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java

            InvokerRequest request = mock(InvokerRequest.class);
    
            // Mock all required properties for LookupContext constructor
            when(request.cwd()).thenReturn(workingDirectory);
            when(request.installationDirectory()).thenReturn(Paths.get("/maven"));
            when(request.userHomeDirectory()).thenReturn(Paths.get("/home/user"));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java

                return 1;
            }
    
            // Discover POMs
            context.info("Discovering POM files...");
            Path startingDirectory = options.directory().map(Paths::get).orElse(context.invokerRequest.cwd());
    
            Map<Path, Document> pomMap;
            try {
                pomMap = PomDiscovery.discoverPoms(startingDirectory);
            } catch (IOException | DomTripException e) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsuleFactory.java

            ArrayList<Path> jars = new ArrayList<>();
            if (extClassPath != null && !extClassPath.isEmpty()) {
                for (String jar : extClassPath.split(File.pathSeparator)) {
                    Path file = context.cwd.resolve(jar);
                    context.logger.debug("  included '" + file + "'");
                    jars.add(file);
                }
            }
            return jars;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jul 03 14:18:26 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top