Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 71 for Activation (0.06 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/SystemPropertyProfileActivator.java

        }
    
        @Override
        public boolean isActive(Profile profile) throws ProfileActivationException {
            Activation activation = profile.getActivation();
    
            ActivationProperty property = activation.getProperty();
    
            if (property != null) {
                String name = property.getName();
                boolean reverseName = false;
    
                if (name == null) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/FileProfileActivator.java

            return profile.getActivation() != null && profile.getActivation().getFile() != null;
        }
    
        @Override
        public boolean isActive(Profile profile) {
            Activation activation = profile.getActivation();
    
            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();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/resources/poms/factory/complex.xml

        <profiles>
            <profile>
                <id>two-conditions</id>
                <activation>
                    <file>
                        <exists>simple.xml</exists>
                    </file>
                    <property>
                        <name>myproperty</name>
                        <value>test</value>
                    </property>
                </activation>
                <properties>
                    <profile.file>activated-1</profile.file>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PackagingProfileActivator.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model.profile.activation;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.util.Objects;
    import java.util.Optional;
    
    import org.apache.maven.api.model.Activation;
    import org.apache.maven.api.model.Profile;
    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
    - 2.5K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java

        private static final String JDK_VERSION = System.getProperty("java.version");
    
        @Override
        public boolean isActive(Profile profile) throws ProfileActivationException {
            Activation activation = profile.getActivation();
    
            String jdk = activation.getJdk();
    
            // null case is covered by canDetermineActivation(), so we can do a straight startsWith() here.
            if (jdk.startsWith("[") || jdk.startsWith("(")) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            return newProfile(activationFile);
        }
    
        private Profile newProfile(ActivationFile activationFile) {
            Activation activation = Activation.newBuilder().file(activationFile).build();
            return Profile.newBuilder().activation(activation).build();
        }
    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. compat/maven-compat/src/main/mdo/profiles.mdo

              <description>The ID of this build profile, for activation
                purposes.</description>
            </field>
            <field>
              <name>activation</name>
              <version>1.0.0</version>
              <description><![CDATA[The conditional logic which will automatically
                trigger the inclusion of this profile.]]></description>
              <association>
                <type>Activation</type>
              </association>
            </field>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 22 11:03:29 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/PropertyProfileActivatorTest.java

            ActivationProperty ap =
                    ActivationProperty.newBuilder().name(key).value(value).build();
    
            Activation a = Activation.newBuilder().property(ap).build();
    
            Profile p = Profile.newBuilder().activation(a).build();
    
            return p;
        }
    
        private Properties newProperties(String key, String value) {
            Properties props = new Properties();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. apache-maven/src/assembly/maven/conf/settings.xml

         |
         | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.
        <profile>
          <id>jdk-1.4</id>
    
          <activation>
            <jdk>1.4</jdk>
          </activation>
    
          <repositories>
            <repository>
              <id>jdk14</id>
              <name>Repository for JDK 1.4 builds</name>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 22 07:44:50 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java

                        + ") with new instance from source: " + profile.getSource());
            }
    
            profilesById.put(profile.getId(), profile);
    
            Activation activation = profile.getActivation();
    
            if (activation != null && activation.isActiveByDefault()) {
                activateAsDefault(profileId);
            }
        }
    
        /* (non-Javadoc)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 6.9K bytes
    - Viewed (0)
Back to top