- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for CWD (0.01 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CWD.java
* is mutable (as CWD may be changed), but allows transition only to existing directories. */ public final class CWD implements Supplier<Path> { /** * Creates instance out of {@link Path}. */ public static CWD create(Path path) { return new CWD(CliUtils.getCanonicalPath(path)); } private Path directory; private CWD(Path directory) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Mar 24 14:09:05 UTC 2025 - 2.4K bytes - Viewed (0) -
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/BaseInvokerRequest.java
@Nullable CIInfo ciInfo, @Nullable Options options) { this.parserRequest = requireNonNull(parserRequest); this.parsingFailed = parsingFailed; this.cwd = requireNonNull(cwd); this.installationDirectory = requireNonNull(installationDirectory); this.userHomeDirectory = requireNonNull(userHomeDirectory); this.userProperties = requireNonNull(userProperties);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 4.2K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupContext.java
public final CWD cwd; public final Path installationDirectory; public final Path userDirectory; public final boolean containerCapsuleManaged; private final Options options; public LookupContext(InvokerRequest invokerRequest, boolean containerCapsuleManaged, Options options) { this.invokerRequest = requireNonNull(invokerRequest); this.cwd = CWD.create(invokerRequest.cwd());Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 5.7K 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/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) -
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/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) -
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)