org.apache.maven.model.Profile.getLocation()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中org.apache.maven.model.Profile.getLocation()方法的一些代码示例,展示了Profile.getLocation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Profile.getLocation()方法的具体详情如下:
包路径:org.apache.maven.model.Profile
类名称:Profile
方法名:getLocation

Profile.getLocation介绍

暂无

代码示例

代码示例来源:origin: apache/maven

private boolean isActive( Profile profile, ProfileActivationContext context, ModelProblemCollector problems )
{
  boolean isActive = false;
  for ( ProfileActivator activator : activators )
  {
    if ( activator.presentInConfig( profile, context, problems ) )
    {
      isActive = true;
    }
  }
  for ( ProfileActivator activator : activators )
  {
    try
    {
      if ( activator.presentInConfig( profile, context, problems ) )
      {
        isActive &=  activator.isActive( profile, context, problems );
      }
    }
    catch ( RuntimeException e )
    {
      problems.add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE )
          .setMessage( "Failed to determine activation for profile " + profile.getId() )
          .setLocation( profile.getLocation( "" ) )
          .setException( e ) );
      return false;
    }
  }
  return isActive;
}

代码示例来源:origin: stackoverflow.com

@Override
  public void onError(SocialAuthError arg0) {
    // TODO Auto-generated method stub

  }

  @Override
  public void onExecute(String provider, Profile t) {
    // TODO Auto-generated method stub
     Log.d("Custom-UI", "Receiving Data");
      Profile profileMap = t;
      Log.d("Custom-UI",  "Validate ID         = " + profileMap.getValidatedId());
      Log.d("Custom-UI",  "First Name          = " + profileMap.getFirstName());
      Log.d("Custom-UI",  "Last Name           = " + profileMap.getLastName());
      Log.d("Custom-UI",  "Email               = " + profileMap.getEmail());
      Log.d("Custom-UI",  "Country                  = " + profileMap.getCountry());
      Log.d("Custom-UI",  "Language                 = " + profileMap.getLanguage());
      Log.d("Custom-UI",  "Location                 = " + profileMap.getLocation());
      Log.d("Custom-UI",  "Profile Image URL  = " + profileMap.getProfileImageURL());
  }

}

代码示例来源:origin: stackoverflow.com

private final class ProfileDataListener implements SocialAuthListener {

@Override
public void onExecute(Profile t) {

 Log.d("Custom-UI", "Receiving Data");
 Profile profileMap = t;
 Log.d("Custom-UI",  "Validate ID = " + profileMap.getValidatedId());
 Log.d("Custom-UI",  "First Name  = " + profileMap.getFirstName());
 Log.d("Custom-UI",  "Last Name  = " + profileMap.getLastName());
 Log.d("Custom-UI",  "Email  = " + profileMap.getEmail());
 Log.d("Custom-UI",  "Gender  = " + profileMap.getGender());
 Log.d("Custom-UI",  "Country  = " + profileMap.getCountry());
 Log.d("Custom-UI",  "Language  = " + profileMap.getLanguage());
 Log.d("Custom-UI",  "Location  = " + profileMap.getLocation());
 Log.d("Custom-UI",  "Profile Image URL = " + profileMap.getProfileImageURL()); }

代码示例来源:origin: stackoverflow.com

private final class ProfileDataListener implements SocialAuthListener<Profile> {

@Override
public void onError(SocialAuthError arg0) {
  // TODO Auto-generated method stub

}

@Override
public void onExecute(String arg0, Profile t) {

    Log.d("Custom-UI", "Receiving Data");
    Log.d("Custom-arg0", arg0);
    Profile profileMap = t;
    Log.d("Custom-UI",  "Validate ID         = " + profileMap.getValidatedId());
    Log.d("Custom-UI",  "First Name          = " + profileMap.getFirstName());
    Log.d("Custom-UI",  "Last Name           = " + profileMap.getLastName());
    Log.d("Custom-UI",  "Email               = " + profileMap.getEmail());
    Log.d("Custom-UI",  "Gender                   = " + profileMap.getGender());
    Log.d("Custom-UI",  "Country                  = " + profileMap.getCountry());
    Log.d("Custom-UI",  "Language                 = " + profileMap.getLanguage());
    Log.d("Custom-UI",  "Location                 = " + profileMap.getLocation());
    Log.d("Custom-UI",  "Profile Image URL  = " + profileMap.getProfileImageURL());
}
}

代码示例来源:origin: org.apache.maven/maven-model-builder

private boolean isActive( Profile profile, ProfileActivationContext context, ModelProblemCollector problems )
{
  boolean isActive = false;
  for ( ProfileActivator activator : activators )
  {
    if ( activator.presentInConfig( profile, context, problems ) )
    {
      isActive = true;
    }
  }
  for ( ProfileActivator activator : activators )
  {
    try
    {
      if ( activator.presentInConfig( profile, context, problems ) )
      {
        isActive &=  activator.isActive( profile, context, problems );
      }
    }
    catch ( RuntimeException e )
    {
      problems.add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE )
          .setMessage( "Failed to determine activation for profile " + profile.getId() )
          .setLocation( profile.getLocation( "" ) )
          .setException( e ) );
      return false;
    }
  }
  return isActive;
}

相关文章