Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for alignToBaseDirectory (0.35 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultModelPathTranslator.java

                        .testResources(map(build.getTestResources(), r -> alignToBaseDirectory(r, basedir)))
                        .filters(map(build.getFilters(), s -> alignToBaseDirectory(s, basedir)))
                        .outputDirectory(alignToBaseDirectory(build.getOutputDirectory(), basedir))
                        .testOutputDirectory(alignToBaseDirectory(build.getTestOutputDirectory(), basedir))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/ModelPathTranslator.java

         * @param request The model building request that holds further settings, must not be {@code null}.
         * @deprecated Use {@link #alignToBaseDirectory(Model, Path, ModelBuildingRequest)} instead.
         */
        @Deprecated
        void alignToBaseDirectory(Model model, File basedir, ModelBuildingRequest request);
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/PathTranslator.java

         * @return The resolved path or {@code null} if the input path was {@code null}.
         * @deprecated Use {@link #alignToBaseDirectory(String, Path)} instead.
         */
        @Deprecated
        String alignToBaseDirectory(String path, File basedir);
    
        /**
         * Resolves the specified path against the given base directory. The resolved path will be absolute and uses the
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultPathTranslator.java

    @Deprecated(since = "4.0.0")
    public class DefaultPathTranslator implements PathTranslator {
    
        @Override
        public String alignToBaseDirectory(String path, File basedir) {
            return alignToBaseDirectory(path, basedir != null ? basedir.toPath() : null);
        }
    
        @Override
        public String alignToBaseDirectory(String path, Path basedir) {
            String result = path;
    
            if (path != null && basedir != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java

        public void alignToBaseDirectory(Model model, File basedir) {
            if (basedir == null) {
                return;
            }
    
            Build build = model.getBuild();
    
            if (build != null) {
                build.setDirectory(alignToBaseDirectory(build.getDirectory(), basedir));
    
                build.setSourceDirectory(alignToBaseDirectory(build.getSourceDirectory(), basedir));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java

            assertEquals(basedir.getAbsolutePath(), aligned);
        }
    
        @Test
        void testAlignToBasedirWhereBasedirExpressionIsTheValuePrefix() {
            File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
    
            String aligned = new DefaultPathTranslator().alignToBaseDirectory("${basedir}/dir", basedir);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java

            }
    
            public Object evaluate(String expression) throws ExpressionEvaluationException {
                return evaluate(expression, null);
            }
    
            public File alignToBaseDirectory(File file) {
                if (translator != null) {
                    return translator.translatePath(file);
                }
                return file;
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/path/PathTranslator.java

    import org.apache.maven.model.Model;
    
    /**
     */
    @Deprecated
    public interface PathTranslator {
        String ROLE = PathTranslator.class.getName();
    
        void alignToBaseDirectory(Model model, File basedir);
    
        String alignToBaseDirectory(String path, File basedir);
    
        void unalignFromBaseDirectory(Model model, File basedir);
    
        String unalignFromBaseDirectory(String directory, File basedir);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/ProfileActivationFilePathInterpolator.java

            interpolator.addValueSource(new MapBasedValueSource(context.getSystemProperties()));
    
            String absolutePath = interpolator.interpolate(path, "");
    
            return pathTranslator.alignToBaseDirectory(absolutePath, basedir);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/PathTranslatingPostProcessor.java

            expression = ValueSourceUtils.trimPrefix(expression, expressionPrefixes, true);
    
            if (projectDir != null && value != null && unprefixedPathKeys.contains(expression)) {
                return pathTranslator.alignToBaseDirectory(String.valueOf(value), projectDir);
            }
    
            return value;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top