Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for rootDirectory (0.04 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/root/RootLocator.java

            Path rootDirectory = findRoot(basedir);
            if (rootDirectory == null) {
                throw new IllegalStateException(getNoRootMessage());
            }
            return rootDirectory;
        }
    
        @Nullable
        default Path findRoot(Path basedir) {
            Path rootDirectory = basedir;
            while (rootDirectory != null && !isRootDirectory(rootDirectory)) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/ProtoSession.java

                return this;
            }
    
            public Builder withRootDirectory(@Nullable Path rootDirectory) {
                this.rootDirectory = rootDirectory;
                return this;
            }
    
            public ProtoSession build() {
                return new Impl(userProperties, systemProperties, startTime, topDirectory, rootDirectory);
            }
    
            private static class Impl implements ProtoSession {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jul 03 14:18:26 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseInvokerRequest.java

            this.userProperties = requireNonNull(userProperties);
            this.systemProperties = requireNonNull(systemProperties);
            this.topDirectory = requireNonNull(topDirectory);
            this.rootDirectory = rootDirectory;
            this.coreExtensions = coreExtensions;
            this.ciInfo = ciInfo;
            this.options = options;
        }
    
        @Override
        public ParserRequest parserRequest() {
            return parserRequest;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlReaderRequest.java

            public XmlReaderRequestBuilder path(Path path) {
                this.path = path;
                return this;
            }
    
            public XmlReaderRequestBuilder rootDirectory(Path rootDirectory) {
                this.rootDirectory = rootDirectory;
                return this;
            }
    
            public XmlReaderRequestBuilder url(URL url) {
                this.url = url;
                return this;
            }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Aug 29 12:46:27 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/CliRequest.java

    @Deprecated
    public class CliRequest {
        String[] args;
    
        CommandLine commandLine;
    
        ClassWorld classWorld;
    
        String workingDirectory;
    
        File multiModuleProjectDirectory;
    
        Path rootDirectory;
    
        Path topDirectory;
    
        boolean verbose;
    
        boolean quiet;
    
        boolean showErrors = true;
    
        Properties userProperties = new Properties();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 08 08:49:11 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            assertActivation(true, newExistsProfile("${project.rootDirectory}/" + "file.txt"), context);
            assertActivation(false, newMissingProfile("${project.rootDirectory}"), context);
            assertActivation(false, newMissingProfile("${project.rootDirectory}/" + "file.txt"), context);
        }
    
        @Test
        void testIsActiveNoFileWithShortBasedir() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 07:09:12 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupContext.java

            user.put("session.topDirectory", invokerRequest.topDirectory().toString());
            if (invokerRequest.rootDirectory().isPresent()) {
                user.put(
                        "session.rootDirectory",
                        invokerRequest.rootDirectory().get().toString());
            }
            this.protoSession = ProtoSession.newBuilder()
                    .withSystemProperties(invokerRequest.systemProperties())
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

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

                    throw new IllegalArgumentException("Specified file does not exists (" + file + ")");
                }
            }
            // maven.config; if exists
            Path mavenConfig = context.rootDirectory != null ? context.rootDirectory.resolve(".mvn/maven.config") : null;
            if (mavenConfig != null && Files.isRegularFile(mavenConfig)) {
                result.add(parseMavenConfigOptions(mavenConfig));
            }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 14 12:35:44 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CliUtils.java

        public static Path findRoot(Path topDirectory) {
            requireNonNull(topDirectory, "topDirectory");
            Path rootDirectory =
                    ServiceLoader.load(RootLocator.class).iterator().next().findRoot(topDirectory);
            if (rootDirectory != null) {
                return getCanonicalPath(rootDirectory);
            }
            return null;
        }
    
        @Nonnull
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 13 18:30:29 UTC 2025
    - 5K bytes
    - Viewed (0)
Back to top