org.apache.maven.continuum.model.project.Project.isScmUseCache()方法的使用及代码示例

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

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

Project.isScmUseCache介绍

[英]Get null
[中]获取空值

代码示例

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

serializer.writeEndElement();
if ( project.isScmUseCache() != false )
  serializer.writeCharacters( String.valueOf( project.isScmUseCache() ) );
  serializer.writeEndElement();

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

serializer.writeEndElement();
if ( project.isScmUseCache() != false )
  serializer.writeCharacters( String.valueOf( project.isScmUseCache() ) );
  serializer.writeEndElement();

代码示例来源:origin: org.apache.continuum/continuum-buildagent-core

private ContinuumScmConfiguration createScmConfiguration( Project project, File workingDirectory,
                             String scmUserName, String scmPassword )
{
  ContinuumScmConfiguration config = new ContinuumScmConfiguration();
  // CONTINUUM-2628
  config = ContinuumScmUtils.setSCMCredentialsforSSH( config, project.getScmUrl(), scmUserName, scmPassword );
  config.setUrl( project.getScmUrl() );
  config.setUseCredentialsCache( project.isScmUseCache() );
  config.setWorkingDirectory( workingDirectory );
  config.setTag( project.getScmTag() );
  return config;
}

代码示例来源:origin: org.apache.maven.continuum/continuum-core

ScmRepository repository = getScmRepository( project, project.isScmUseCache() );

代码示例来源:origin: org.apache.continuum/continuum-buildagent-core

private ContinuumScmConfiguration createScmConfiguration( Project project, File workingDirectory )
{
  ContinuumScmConfiguration config = new ContinuumScmConfiguration();
  config.setUrl( project.getScmUrl() );
  // CONTINUUM-2628
  config = ContinuumScmUtils.setSCMCredentialsforSSH( config, project.getScmUrl(), project.getScmUsername(),
                            project.getScmPassword() );
  config.setUseCredentialsCache( project.isScmUseCache() );
  config.setWorkingDirectory( workingDirectory );
  config.setTag( project.getScmTag() );
  return config;
}

代码示例来源:origin: org.apache.continuum/continuum-core

private ContinuumScmConfiguration createScmConfiguration( Project project, File workingDirectory,
                             String scmUserName, String scmPassword, String scmRootUrl,
                             boolean isRootDirectory )
{
  ContinuumScmConfiguration config = new ContinuumScmConfiguration();
  if ( project.isCheckedOutInSingleDirectory() && scmRootUrl != null && !"".equals( scmRootUrl ) &&
    isRootDirectory )
  {
    config.setUrl( scmRootUrl );
  }
  else
  {
    config.setUrl( project.getScmUrl() );
  }
  // CONTINUUM-2628
  config = ContinuumScmUtils.setSCMCredentialsforSSH( config, config.getUrl(), scmUserName, scmPassword );
  config.setUseCredentialsCache( project.isScmUseCache() );
  config.setWorkingDirectory( workingDirectory );
  config.setTag( project.getScmTag() );
  return config;
}

代码示例来源:origin: org.apache.continuum/continuum-buildagent-core

private ContinuumScmConfiguration createScmConfiguration( Project project, File workingDirectory )
{
  ContinuumScmConfiguration config = new ContinuumScmConfiguration();
  config.setUrl( project.getScmUrl() );
  config.setUsername( project.getScmUsername() );
  config.setPassword( project.getScmPassword() );
  config.setUseCredentialsCache( project.isScmUseCache() );
  config.setWorkingDirectory( workingDirectory );
  config.setTag( project.getScmTag() );
  return config;
}

代码示例来源:origin: org.apache.maven.continuum/continuum-core

"to '" + workingDirectory + "'" + tagMessage + "." );
ScmRepository repository = getScmRepository( project, project.isScmUseCache() );

代码示例来源:origin: org.apache.continuum/continuum-core

private ContinuumScmConfiguration createScmConfiguration( Project project, File workingDirectory,
                             String scmRootUrl )
{
  ContinuumScmConfiguration config = new ContinuumScmConfiguration();
  if ( project.isCheckedOutInSingleDirectory() && scmRootUrl != null && !"".equals( scmRootUrl ) )
  {
    config.setUrl( scmRootUrl );
  }
  else
  {
    config.setUrl( project.getScmUrl() );
  }
  // CONTINUUM-2628
  config = ContinuumScmUtils.setSCMCredentialsforSSH( config, config.getUrl(), project.getScmUsername(),
                            project.getScmPassword() );
  config.setUseCredentialsCache( project.isScmUseCache() );
  config.setWorkingDirectory( workingDirectory );
  config.setTag( project.getScmTag() );
  return config;
}

代码示例来源:origin: org.apache.continuum/continuum-core

StoreProjectAction.setUseScmCredentialsCache( context, project.isScmUseCache() );

相关文章

Project类方法