0 Replies Latest reply on Mar 27, 2013 2:14 AM by 995445

    How to get Profile ID

    995445
      Hi,

      I registered several profiles for deployment, and need to know each profile type and profile ID for the project selected dynamically.
      Profile name could be acquired from Profile classs method, getName(), but there is no support for getting the Profile ID method.

      Below is the part of source code of the trial and error I made.

      /************
      DeploymentProfiles profiles = DeploymentProfiles.getInstance(proj);

      for (Profile prof : profiles.getProfiles()) {


      jarArchProfile = (ArchiveProfile) prof;
      URL jarURL = jarArchProfile.getJarURL();

      profileName = jarArchProfile.getName();

      ProfileFactory.SpiData spi = ProfileFactory.SpiData.getInstance(context);
      profileId = spi.getProfileId();

      profileType = ProfileTypes.getInstance().getTypeFor(profileId);


      *****************/


      Is there any way to acquire Profile ID and Profile Type values for a Profile?

      Best regards,
      Cliff

      Edited by: 992442 on 2013. 3. 26 오후 7:12

      Edited by: 992442 on 2013. 3. 26 오후 7:13

      Edited by: 992442 on 2013. 3. 26 오후 7:13

      Edited by: 992442 on 2013. 3. 26 오후 7:14