Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ActivationFile (0.06 sec)

  1. compat/maven-model/src/test/java/org/apache/maven/model/ActivationFileTest.java

    /**
     * Tests {@code ActivationFile}.
     *
     */
    class ActivationFileTest {
    
        @Test
        void testHashCodeNullSafe() {
            new ActivationFile().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new ActivationFile().equals(null));
    
            new ActivationFile().equals(new ActivationFile());
        }
    
        @Test
        void testEqualsIdentity() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            ActivationFile activationFile =
                    ActivationFile.newBuilder().exists(filePath).build();
            return newProfile(activationFile);
        }
    
        private Profile newMissingProfile(String filePath) {
            ActivationFile activationFile =
                    ActivationFile.newBuilder().missing(filePath).build();
            return newProfile(activationFile);
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 07:09:12 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. 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 {@code org.apache.maven.api.services.ModelBuilder} instead
     */
    @Named
    @Singleton
    @Deprecated
    public class ProfileActivationFilePathInterpolator {
    
        @Inject
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/FileProfileActivator.java

    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.File;
    
    import org.apache.maven.model.Activation;
    import org.apache.maven.model.ActivationFile;
    import org.apache.maven.model.Profile;
    import org.apache.maven.model.building.ModelProblem.Severity;
    import org.apache.maven.model.building.ModelProblem.Version;
    import org.apache.maven.model.building.ModelProblemCollector;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java

                }
            }
    
            private void visit(ActivationFile activationFile) {
                if (activationFile != null) {
                    String org, val;
                    // Missing
                    org = activationFile.getMissing();
                    val = interpolate(org);
                    if (org != val) {
                        activationFile.setMissing(val);
                    }
                    // Exists
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 43.1K bytes
    - Viewed (0)
  6. impl/maven-core/src/test/java/org/apache/maven/settings/SettingsUtilsTest.java

            assertEquals("org.codehaus.plexus", pluginGroups.get(2));
        }
    
        @Test
        void testRoundTripProfiles() {
            Random entropy = new Random();
            ActivationFile af = ActivationFile.newBuilder()
                    .exists("exists" + Long.toHexString(entropy.nextLong()))
                    .missing("missing" + Long.toHexString(entropy.nextLong()))
                    .build();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/FileProfileActivator.java

     * under the License.
     */
    package org.apache.maven.profiles.activation;
    
    import java.io.File;
    import java.io.IOException;
    
    import org.apache.maven.model.Activation;
    import org.apache.maven.model.ActivationFile;
    import org.apache.maven.model.Profile;
    import org.codehaus.plexus.interpolation.EnvarBasedValueSource;
    import org.codehaus.plexus.interpolation.InterpolationException;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/mdo/profiles.mdo

              <description><![CDATA[
                 Specifies that this profile will be activated based on existence of a file.
                 ]]></description>
              <association>
                <type>ActivationFile</type>
              </association>
            </field>
          </fields>
        </class>
    
        <!-- TODO: reproduced from maven-model/maven.mdo, instead should inherit code and link to external docs -->
        <class>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 22 11:03:29 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  9. api/maven-api-settings/src/main/mdo/settings.mdo

              <version>1.0.0+</version>
              <description>
                Specifies that this profile will be activated based on existence of a file.
              </description>
              <association>
                <type>ActivationFile</type>
              </association>
            </field>
            <field>
              <name>packaging</name>
              <version>1.2.0+</version>
              <type>String</type>
              <description>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun May 18 09:15:56 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  10. api/maven-api-model/src/main/mdo/maven.mdo

              <name>file</name>
              <version>4.0.0+</version>
              <description>Specifies that this profile will be activated based on existence of a file.</description>
              <association>
                <type>ActivationFile</type>
              </association>
            </field>
            <field>
              <name>packaging</name>
              <version>4.1.0+</version>
              <type>String</type>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Nov 26 03:07:35 UTC 2025
    - 133.3K bytes
    - Viewed (0)
Back to top