- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for cwd (0.02 sec)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTest.java
return new MavenParser(); } @Test void defaultFs( @TempDir(cleanup = CleanupMode.ON_SUCCESS) Path cwd, @TempDir(cleanup = CleanupMode.ON_SUCCESS) Path userHome) throws Exception { invoke(cwd, userHome, List.of("verify"), List.of()); } @Disabled("Enable it when fully moved to NIO2 with Path/Filesystem (ie MavenExecutionRequest)") @Test
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Oct 21 12:17:55 UTC 2025 - 9.3K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java
} """; protected Map<String, String> invoke(Path cwd, Path userHome, Collection<String> goals, Collection<String> args) throws Exception { Files.createDirectories(cwd.resolve(".mvn")); Path pom = cwd.resolve("pom.xml").toAbsolutePath(); Files.writeString(pom, POM_STRING); Path appJava = cwd.resolve("src/main/java/org/apache/maven/samples/sample/App.java");Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Oct 21 12:17:55 UTC 2025 - 6.8K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java
LocalContext context = new LocalContext(parserRequest); // the basics try { context.cwd = getCwd(context); } catch (Exception e) { context.parsingFailed = true; context.cwd = getCanonicalPath(Paths.get(".")); parserRequest.logger().error("Error determining working directory", e); } try {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 10 07:39:11 UTC 2025 - 25.5K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellInvoker.java
@Override protected int execute(LookupContext context) throws Exception { // set up JLine built-in commands ConfigurationPath configPath = new ConfigurationPath(context.cwd.get(), context.cwd.get()); Builtins builtins = new Builtins(context.cwd, configPath, null); builtins.rename(Builtins.Command.TTOP, "top"); builtins.alias("zle", "widget"); builtins.alias("bindkey", "keymap");Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Oct 16 06:12:36 UTC 2025 - 10.1K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/resident/ResidentMavenInvokerTest.java
return new MavenParser(); } @Test void defaultFs( @TempDir(cleanup = CleanupMode.ON_SUCCESS) Path cwd, @TempDir(cleanup = CleanupMode.ON_SUCCESS) Path userHome) throws Exception { invoke(cwd, userHome, List.of("verify"), List.of()); } @Disabled("Enable it when fully moved to NIO2 with Path/Filesystem (ie MavenExecutionRequest)") @Test
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Oct 16 10:47:37 UTC 2025 - 2.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)