Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setProjectDirectory (0.09 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            context.setProjectDirectory(tempDir.toFile());
    
            File file = new File(tempDir.resolve("file.txt").toString());
            if (!file.createNewFile()) {
                throw new IOException("Can't create " + file);
            }
        }
    
        @Test
        void testRootDirectoryWithNull() {
            context.setProjectDirectory(null);
    
            IllegalStateException e = assertThrows(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileActivationContext.java

         *                         happens in the context of metadata retrieval rather than project building.
         * @return This context, never {@code null}.
         */
        public DefaultProfileActivationContext setProjectDirectory(File projectDirectory) {
            this.projectDirectory = projectDirectory;
    
            return this;
        }
    
        @Override
        public Map<String, String> getProjectProperties() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                        ProfileActivationContext.PROPERTY_NAME_PACKAGING,
                        request.getFileModel().getPackaging());
            }
            context.setUserProperties(userProperties);
            context.setProjectDirectory(
                    (request.getPomFile() != null) ? request.getPomFile().getParentFile() : null);
    
            return context;
        }
    
        private void configureResolver(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
Back to top