[jbosstools-commits] JBoss Tools SVN: r39852 - branches/jbosstools-3.3.0.Beta1/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Mar 27 12:47:06 EDT 2012


Author: fbricon
Date: 2012-03-27 12:47:05 -0400 (Tue, 27 Mar 2012)
New Revision: 39852

Modified:
   branches/jbosstools-3.3.0.Beta1/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java
   branches/jbosstools-3.3.0.Beta1/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardPage.java
Log:
JBIDE-11406 fix default maven profiles

Modified: branches/jbosstools-3.3.0.Beta1/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java
===================================================================
--- branches/jbosstools-3.3.0.Beta1/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java	2012-03-27 14:49:34 UTC (rev 39851)
+++ branches/jbosstools-3.3.0.Beta1/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java	2012-03-27 16:47:05 UTC (rev 39852)
@@ -470,13 +470,6 @@
 			if (projectExample.getDescription() != null) {
 				setDescription(ProjectExamplesActivator.getShortDescription(projectExample.getDescription()));
 			}
-			ProjectImportConfiguration configuration = getImportConfiguration();
-			if (configuration != null) {
-				String profiles = projectExample.getDefaultProfiles();
-			    if (profiles != null && profiles.trim().length() > 0) {
-			    	configuration.getResolverConfiguration().setActiveProfiles(profiles);
-			    }
-			}
 			initDefaultValues();
 		} 
 	}

Modified: branches/jbosstools-3.3.0.Beta1/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardPage.java
===================================================================
--- branches/jbosstools-3.3.0.Beta1/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardPage.java	2012-03-27 14:49:34 UTC (rev 39851)
+++ branches/jbosstools-3.3.0.Beta1/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardPage.java	2012-03-27 16:47:05 UTC (rev 39852)
@@ -497,6 +497,13 @@
 				setDescription(ProjectExamplesActivator
 						.getShortDescription(projectExample.getDescription()));
 			}
+			ProjectImportConfiguration configuration = getImportConfiguration();
+			if (configuration != null) {
+				String profiles = projectExample.getDefaultProfiles();
+			    if (profiles != null && profiles.trim().length() > 0) {
+			    	configuration.getResolverConfiguration().setActiveProfiles(profiles);
+			    }
+			}
 			projectDescription = projectExample;
 			if (getContainer() != null) {
 				initialize();



More information about the jbosstools-commits mailing list