WIZARD: Changed profile name of git platform project 77/26277/1
authordonghyuk.yang <donghyuk.yang@samsung.com>
Wed, 20 Aug 2014 08:26:17 +0000 (17:26 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Wed, 20 Aug 2014 08:26:17 +0000 (17:26 +0900)
Profile name of git project project is site configuration name. Now,
common plugin checks that profile name is matched with rootstrap name
strictly. So, change profile name of git platform project as real
profile name.

Change-Id: I161747e758766a00468b23ab526557792d8890e1
Signed-off-by: donghyuk.yang <donghyuk.yang@samsung.com>
org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/TemplateTizenPlatformNewWizard.java

index ab9cbf9..314d305 100644 (file)
@@ -103,18 +103,21 @@ public class TemplateTizenPlatformNewWizard extends TemplateTizenNewWizard {
         /* create git items */
         PreferencesManager.SiteConfiguration config = PreferencesManager
                 .loadActiveSiteConfiguration();
+        ProfileInfo gitProfileInfo = InstallPathConfig.getLatestProfileInfo();
         if (config != null) {
-            String profileName = config.getName();
+            
             /*
              *  [git profile info]
              *  name : site configuration name
              *  version : 1
              *  path : 
              */
-            ProfileInfo gitProfileInfo = new ProfileInfo(profileName, "1", "");
+               //String profileName = config.getName();
+            //ProfileInfo gitProfileInfo = new ProfileInfo(profileName, "1", "");
+
             EntryDescriptor gitEntryDes = null;
             List<GitDescription> gitDescs = null;
-
+            String profileName = gitProfileInfo.getProfile();
             gitDescs = GitDescManager.getDescs(profileName);
             if (gitDescs == null || gitDescs.isEmpty()) {
                 IGitIndexParser parser = GitIndexParserFactory.getIndexParser(config);