Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getExists (0.06 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

                    .getActivation()
                    .getFile()
                    .getExists();
    
            assertEquals(originalExists, resultExists);
            assertTrue(result.getEffectiveModel()
                    .getProfiles()
                    .get(1)
                    .getActivation()
                    .getFile()
                    .getExists()
                    .contains(BASE_DIR));
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/FileProfileActivator.java

            if (file == null) {
                return false;
            }
    
            String path;
            boolean missing;
    
            if (file.getExists() != null && !file.getExists().isEmpty()) {
                path = file.getExists();
                missing = false;
            } else if (file.getMissing() != null && !file.getMissing().isEmpty()) {
                path = file.getMissing();
                missing = true;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            Profile profile = newExistsProfile("file.txt");
            assertEquals("file.txt", profile.getActivation().getFile().getExists());
    
            assertActivation(true, profile, context);
    
            assertEquals("file.txt", profile.getActivation().getFile().getExists());
        }
    
        private Profile newExistsProfile(String filePath) {
            ActivationFile activationFile =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/ProfileActivationFilePathInterpolator.java

    import org.codehaus.plexus.interpolation.MapBasedValueSource;
    import org.codehaus.plexus.interpolation.RegexBasedInterpolator;
    
    /**
     * Finds an absolute path for {@link ActivationFile#getExists()} or {@link ActivationFile#getMissing()}
     *
     * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead
     */
    @Named
    @Singleton
    @Deprecated
    public class ProfileActivationFilePathInterpolator {
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/profiles/ProfilesConversionUtils.java

                if (profileFile != null) {
                    ActivationFile file = new ActivationFile();
    
                    file.setExists(profileFile.getExists());
                    file.setMissing(profileFile.getMissing());
    
                    activation.setFile(file);
                }
    
                profile.setActivation(activation);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/FileProfileActivator.java

            ActivationFile actFile = activation.getFile();
    
            if (actFile != null) {
                // check if the file exists, if it does then the profile will be active
                String fileString = actFile.getExists();
    
                RegexBasedInterpolator interpolator = new RegexBasedInterpolator();
                try {
                    interpolator.addValueSource(new EnvarBasedValueSource());
                } catch (IOException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                        Supplier<? extends ActivationFile.Builder> creator,
                        ActivationFile.Builder builder,
                        ActivationFile target) {
                    final String path = target.getExists();
                    final String xformed = transformPath(path, target, "exists");
                    return xformed != path ? (builder != null ? builder : creator.get()).exists(xformed) : builder;
                }
    
    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