From 1fc7419f03ea98db387f5876e4cd99b887e9d6bf Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Mon, 13 Jun 2005 04:21:27 +0000 Subject: [PATCH] o Added for profiles configured in the pom.xml o Split ModelNormalizationUtils into two utility classes in the maven-profile and maven-settings projects, to be used for converting Profile instances from the settings.xml and profiles.xml into maven-model instances. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@190344 13f79535-47bb-0310-9956-ffa450edef68 --- .../resources/META-INF/plexus/components.xml | 22 ++-- .../java/org/apache/maven/DefaultMaven.java | 9 +- .../java/org/apache/maven/cli/MavenCli.java | 2 +- .../settings/DefaultMavenSettingsBuilder.java | 2 +- .../maven/settings/MavenSettingsBuilder.java | 2 +- maven-model/maven.mdo | 23 ++-- maven-profile/pom.xml | 15 +++ .../profiles/ProfilesConversionUtils.java | 108 ++++++++++++++++++ .../AlwaysOnActivation.java | 2 +- .../activation/AlwaysOnProfileActivator.java | 4 +- .../activation/DetectedProfileActivator.java | 2 +- .../ExplicitListingProfileActivator.java | 2 +- .../activation/JdkPrefixProfileActivator.java | 2 +- .../ProfileActivationCalculator.java | 2 +- .../activation/ProfileActivationUtils.java | 2 +- .../activation/ProfileActivator.java | 2 +- .../SystemPropertyProfileActivator.java | 2 +- .../project/DefaultMavenProjectBuilder.java | 2 +- .../resources/META-INF/plexus/components.xml | 22 ++-- maven-settings/pom.xml | 15 +++ .../settings/SettingsConversionUtils.java | 86 +------------- 21 files changed, 195 insertions(+), 133 deletions(-) create mode 100644 maven-profile/src/main/java/org/apache/maven/profiles/ProfilesConversionUtils.java rename maven-project/src/main/java/org/apache/maven/{profile => profiles}/AlwaysOnActivation.java (95%) rename maven-project/src/main/java/org/apache/maven/{profile => profiles}/activation/AlwaysOnProfileActivator.java (90%) rename maven-project/src/main/java/org/apache/maven/{profile => profiles}/activation/DetectedProfileActivator.java (95%) rename maven-project/src/main/java/org/apache/maven/{profile => profiles}/activation/ExplicitListingProfileActivator.java (95%) rename maven-project/src/main/java/org/apache/maven/{profile => profiles}/activation/JdkPrefixProfileActivator.java (96%) rename maven-project/src/main/java/org/apache/maven/{profile => profiles}/activation/ProfileActivationCalculator.java (98%) rename maven-project/src/main/java/org/apache/maven/{profile => profiles}/activation/ProfileActivationUtils.java (97%) rename maven-project/src/main/java/org/apache/maven/{profile => profiles}/activation/ProfileActivator.java (94%) rename maven-project/src/main/java/org/apache/maven/{profile => profiles}/activation/SystemPropertyProfileActivator.java (97%) rename maven-core/src/main/java/org/apache/maven/model/ModelNormalizationUtils.java => maven-settings/src/main/java/org/apache/maven/settings/SettingsConversionUtils.java (54%) diff --git a/maven-artifact-ant/src/main/resources/META-INF/plexus/components.xml b/maven-artifact-ant/src/main/resources/META-INF/plexus/components.xml index 3d19af0ccd..cad52ba95d 100644 --- a/maven-artifact-ant/src/main/resources/META-INF/plexus/components.xml +++ b/maven-artifact-ant/src/main/resources/META-INF/plexus/components.xml @@ -226,7 +226,7 @@ org.apache.maven.artifact.repository.ArtifactRepositoryFactory - org.apache.maven.profile.activation.ProfileActivationCalculator + org.apache.maven.profiless.activation.ProfileActivationCalculator @@ -236,8 +236,8 @@ | --> - org.apache.maven.profile.activation.ProfileActivationCalculator - org.apache.maven.profile.activation.ProfileActivationCalculator + org.apache.maven.profiless.activation.ProfileActivationCalculator + org.apache.maven.profiless.activation.ProfileActivationCalculator - org.apache.maven.profile.activation.ProfileActivator + org.apache.maven.profiless.activation.ProfileActivator always-on - org.apache.maven.profile.activation.AlwaysOnProfileActivator + org.apache.maven.profiless.activation.AlwaysOnProfileActivator - org.apache.maven.profile.activation.ProfileActivator + org.apache.maven.profiless.activation.ProfileActivator jdk-prefix - org.apache.maven.profile.activation.JdkPrefixProfileActivator + org.apache.maven.profiless.activation.JdkPrefixProfileActivator - org.apache.maven.profile.activation.ProfileActivator + org.apache.maven.profiless.activation.ProfileActivator system-property - org.apache.maven.profile.activation.SystemPropertyProfileActivator + org.apache.maven.profiless.activation.SystemPropertyProfileActivator - org.apache.maven.profile.activation.ProfileActivator + org.apache.maven.profiless.activation.ProfileActivator explicit-listing - org.apache.maven.profile.activation.ExplicitListingProfileActivator + org.apache.maven.profiless.activation.ExplicitListingProfileActivator - org.apache.maven.profile.activation.ProfileActivationCalculator - org.apache.maven.profile.activation.ProfileActivationCalculator + org.apache.maven.profiles.activation.ProfileActivationCalculator + org.apache.maven.profiles.activation.ProfileActivationCalculator - org.apache.maven.profile.activation.ProfileActivator + org.apache.maven.profiles.activation.ProfileActivator always-on - org.apache.maven.profile.activation.AlwaysOnProfileActivator + org.apache.maven.profiles.activation.AlwaysOnProfileActivator - org.apache.maven.profile.activation.ProfileActivator + org.apache.maven.profiles.activation.ProfileActivator jdk-prefix - org.apache.maven.profile.activation.JdkPrefixProfileActivator + org.apache.maven.profiles.activation.JdkPrefixProfileActivator - org.apache.maven.profile.activation.ProfileActivator + org.apache.maven.profiles.activation.ProfileActivator system-property - org.apache.maven.profile.activation.SystemPropertyProfileActivator + org.apache.maven.profiles.activation.SystemPropertyProfileActivator - org.apache.maven.profile.activation.ProfileActivator + org.apache.maven.profiles.activation.ProfileActivator explicit-listing - org.apache.maven.profile.activation.ExplicitListingProfileActivator + org.apache.maven.profiles.activation.ExplicitListingProfileActivator