本文整理了Java中org.apache.maven.continuum.model.project.Project.getScmTag()
方法的一些代码示例,展示了Project.getScmTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getScmTag()
方法的具体详情如下:
包路径:org.apache.maven.continuum.model.project.Project
类名称:Project
方法名:getScmTag
[英]Get null
[中]获取空值
代码示例来源:origin: org.apache.maven.continuum/continuum-core
if ( StringUtils.isEmpty( p.getScmTag() ) && !StringUtils.isEmpty( project.getScmTag() ) )
else if ( !StringUtils.isEmpty( p.getScmTag() ) && StringUtils.isEmpty( project.getScmTag() ) )
else if ( !StringUtils.isEmpty( p.getScmTag() ) && !p.getScmTag().equals( project.getScmTag() ) )
if ( StringUtils.isEmpty( project.getScmTag() ) )
代码示例来源:origin: org.apache.continuum/continuum-core
if ( StringUtils.isEmpty( p.getScmTag() ) && !StringUtils.isEmpty( project.getScmTag() ) )
else if ( !StringUtils.isEmpty( p.getScmTag() ) && StringUtils.isEmpty( project.getScmTag() ) )
else if ( !StringUtils.isEmpty( p.getScmTag() ) && !p.getScmTag().equals( project.getScmTag() ) )
if ( StringUtils.isEmpty( project.getScmTag() ) )
代码示例来源:origin: org.apache.continuum/continuum-buildagent-core
if ( StringUtils.isNotEmpty( project.getScmTag() ) )
projectMap.put( ContinuumBuildAgentUtil.KEY_SCM_TAG, project.getScmTag() );
代码示例来源:origin: org.apache.maven.continuum/continuum-model
serializer.writeEndElement();
if ( project.getScmTag() != null )
serializer.writeCharacters( project.getScmTag() );
serializer.writeEndElement();
代码示例来源:origin: org.apache.continuum/continuum-model
serializer.writeEndElement();
if ( project.getScmTag() != null )
serializer.writeCharacters( project.getScmTag() );
serializer.writeEndElement();
代码示例来源:origin: org.apache.continuum/continuum-xmlrpc-server
if ( project.getScmTag() != null )
scmTag = project.getScmTag();
代码示例来源:origin: org.apache.continuum/continuum-builder
if ( project.getScmTag() != null )
context.put( ContinuumBuildConstant.KEY_SCM_TAG, project.getScmTag() );
代码示例来源: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.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.maven.continuum/continuum-core
public ScmResult updateProject( Project project, Map context )
throws ContinuumScmException
String tag = project.getScmTag();
代码示例来源:origin: org.apache.maven.continuum/continuum-core
public ScmResult checkOut( Project project, File workingDirectory, Map context )
throws ContinuumScmException
String tag = project.getScmTag();
代码示例来源: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.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;
}
内容来源于网络,如有侵权,请联系作者删除!