本文整理汇总了Java中org.apache.maven.model.Site类的典型用法代码示例。如果您正苦于以下问题:Java Site类的具体用法?Java Site怎么用?Java Site使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Site类属于org.apache.maven.model包,在下文中一共展示了Site类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: writeSite
import org.apache.maven.model.Site; //导入依赖的package包/类
private void writeSite(Site site, String tagName, XmlSerializer serializer)
throws java.io.IOException {
serializer.startTag(NAMESPACE, tagName);
flush(serializer);
StringBuffer b = b(serializer);
int start = b.length();
if (site.getId() != null) {
writeValue(serializer, "id", site.getId(), site);
}
if (site.getName() != null) {
writeValue(serializer, "name", site.getName(), site);
}
if (site.getUrl() != null) {
writeValue(serializer, "url", site.getUrl(), site);
}
serializer.endTag(NAMESPACE, tagName).flush();
logLocation(site, "", start, b.length());
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:19,代码来源:LocationAwareMavenXpp3Writer.java
示例2: mergeSite_Url
import org.apache.maven.model.Site; //导入依赖的package包/类
@Override
protected void mergeSite_Url( Site target, Site source, boolean sourceDominant, Map<Object, Object> context )
{
String src = source.getUrl();
if ( src != null )
{
if ( sourceDominant )
{
target.setUrl( src );
target.setLocation( "url", source.getLocation( "url" ) );
}
else if ( target.getUrl() == null )
{
target.setUrl( appendPath( src, context ) );
target.setLocation( "url", source.getLocation( "url" ) );
}
}
}
开发者ID:gems-uff,项目名称:oceano,代码行数:19,代码来源:MavenModelMerger.java
示例3: writeDistributionManagement
import org.apache.maven.model.Site; //导入依赖的package包/类
private void writeDistributionManagement(DistributionManagement distributionManagement, String tagName, XmlSerializer serializer)
throws java.io.IOException {
serializer.startTag(NAMESPACE, tagName);
flush(serializer);
StringBuffer b = b(serializer);
int start = b.length();
if (distributionManagement.getRepository() != null) {
writeDeploymentRepository((DeploymentRepository) distributionManagement.getRepository(), "repository", serializer);
}
if (distributionManagement.getSnapshotRepository() != null) {
writeDeploymentRepository((DeploymentRepository) distributionManagement.getSnapshotRepository(), "snapshotRepository", serializer);
}
if (distributionManagement.getSite() != null) {
writeSite((Site) distributionManagement.getSite(), "site", serializer);
}
if (distributionManagement.getDownloadUrl() != null) {
writeValue(serializer, "downloadUrl", distributionManagement.getDownloadUrl(), distributionManagement);
}
if (distributionManagement.getRelocation() != null) {
writeRelocation((Relocation) distributionManagement.getRelocation(), "relocation", serializer);
}
if (distributionManagement.getStatus() != null) {
writeValue(serializer, "status", distributionManagement.getStatus(), distributionManagement);
}
serializer.endTag(NAMESPACE, tagName).flush();
logLocation(distributionManagement, "", start, b.length());
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:29,代码来源:LocationAwareMavenXpp3Writer.java
示例4: updateSite
import org.apache.maven.model.Site; //导入依赖的package包/类
/**
* Method updateSite
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateSite( Site value, String xmlTag, Counter counter, Element element )
{
boolean shouldExist = value != null;
Element root = updateElement( counter, element, xmlTag, shouldExist );
if ( shouldExist )
{
Counter innerCount = new Counter( counter.getDepth() + 1 );
findAndReplaceSimpleElement( innerCount, root, "id", value.getId(), null );
findAndReplaceSimpleElement( innerCount, root, "name", value.getName(), null );
findAndReplaceSimpleElement( innerCount, root, "url", value.getUrl(), null );
}
}
开发者ID:javiersigler,项目名称:apache-maven-shade-plugin,代码行数:21,代码来源:MavenJDOMWriter.java
示例5: visitDistributionManagement
import org.apache.maven.model.Site; //导入依赖的package包/类
private void visitDistributionManagement( ModelVisitor visitor, DistributionManagement distributionManagement )
{
DeploymentRepository repository = distributionManagement.getRepository();
if ( repository != null )
{
visitor.visitDistributionManagementRepository( repository );
visitDistributionManagementRepository( visitor, repository );
repository = visitor.replaceDistributionManagementRepository( repository );
distributionManagement.setRepository( repository );
}
DeploymentRepository snapshotRepository = distributionManagement.getSnapshotRepository();
if ( snapshotRepository != null )
{
visitor.visitDistributionManagementSnapshotRepository( snapshotRepository );
visitDistributionManagementSnapshotRepository( visitor, snapshotRepository );
snapshotRepository = visitor.replaceDistributionManagementSnapshotRepository( snapshotRepository );
distributionManagement.setSnapshotRepository( snapshotRepository );
}
Site site = distributionManagement.getSite();
if ( site != null )
{
visitor.visitDistributionManagementSite( site );
site = visitor.replaceDistributionManagementSite( site );
distributionManagement.setSite( site );
}
Relocation relocation = distributionManagement.getRelocation();
if ( relocation != null )
{
visitor.visitDistributionManagementRelocation( relocation );
relocation = visitor.replaceDistributionManagementRelocation( relocation );
distributionManagement.setRelocation( relocation );
}
}
开发者ID:fedora-java,项目名称:xmvn,代码行数:37,代码来源:DefaultModelProcessor.java
示例6: visitProfileDistributionManagement
import org.apache.maven.model.Site; //导入依赖的package包/类
private void visitProfileDistributionManagement( ModelVisitor visitor,
DistributionManagement distributionManagement )
{
DeploymentRepository repository = distributionManagement.getRepository();
if ( repository != null )
{
visitor.visitProfileDistributionManagementRepository( repository );
visitProfileDistributionManagementRepository( visitor, repository );
repository = visitor.replaceProfileDistributionManagementRepository( repository );
distributionManagement.setRepository( repository );
}
DeploymentRepository snapshotRepository = distributionManagement.getSnapshotRepository();
if ( snapshotRepository != null )
{
visitor.visitProfileDistributionManagementSnapshotRepository( snapshotRepository );
visitProfileDistributionManagementSnapshotRepository( visitor, snapshotRepository );
snapshotRepository = visitor.replaceProfileDistributionManagementSnapshotRepository( snapshotRepository );
distributionManagement.setSnapshotRepository( snapshotRepository );
}
Site site = distributionManagement.getSite();
if ( site != null )
{
visitor.visitProfileDistributionManagementSite( site );
site = visitor.replaceProfileDistributionManagementSite( site );
distributionManagement.setSite( site );
}
Relocation relocation = distributionManagement.getRelocation();
if ( relocation != null )
{
visitor.visitProfileDistributionManagementRelocation( relocation );
relocation = visitor.replaceProfileDistributionManagementRelocation( relocation );
distributionManagement.setRelocation( relocation );
}
}
开发者ID:fedora-java,项目名称:xmvn,代码行数:38,代码来源:DefaultModelProcessor.java
示例7: mergeSite_Id
import org.apache.maven.model.Site; //导入依赖的package包/类
protected void mergeSite_Id( Site target, Site source, boolean sourceDominant, Map<Object, Object> context )
{
String src = source.getId();
if ( src != null )
{
if ( sourceDominant || target.getId() == null )
{
target.setId( src );
target.setLocation( "id", source.getLocation( "id" ) );
}
}
}
开发者ID:gems-uff,项目名称:oceano,代码行数:13,代码来源:ModelMerger.java
示例8: mergeSite_Name
import org.apache.maven.model.Site; //导入依赖的package包/类
protected void mergeSite_Name( Site target, Site source, boolean sourceDominant, Map<Object, Object> context )
{
String src = source.getName();
if ( src != null )
{
if ( sourceDominant || target.getName() == null )
{
target.setName( src );
target.setLocation( "name", source.getLocation( "name" ) );
}
}
}
开发者ID:gems-uff,项目名称:oceano,代码行数:13,代码来源:ModelMerger.java
示例9: mergeSite_Url
import org.apache.maven.model.Site; //导入依赖的package包/类
protected void mergeSite_Url( Site target, Site source, boolean sourceDominant, Map<Object, Object> context )
{
String src = source.getUrl();
if ( src != null )
{
if ( sourceDominant || target.getUrl() == null )
{
target.setUrl( src );
target.setLocation( "url", source.getLocation( "url" ) );
}
}
}
开发者ID:gems-uff,项目名称:oceano,代码行数:13,代码来源:ModelMerger.java
示例10: normalize
import org.apache.maven.model.Site; //导入依赖的package包/类
public void normalize( Model model, ModelBuildingRequest request )
{
if ( model == null )
{
return;
}
model.setUrl( normalize( model.getUrl() ) );
Scm scm = model.getScm();
if ( scm != null )
{
scm.setUrl( normalize( scm.getUrl() ) );
scm.setConnection( normalize( scm.getConnection() ) );
scm.setDeveloperConnection( normalize( scm.getDeveloperConnection() ) );
}
DistributionManagement dist = model.getDistributionManagement();
if ( dist != null )
{
Site site = dist.getSite();
if ( site != null )
{
site.setUrl( normalize( site.getUrl() ) );
}
}
}
开发者ID:gems-uff,项目名称:oceano,代码行数:28,代码来源:DefaultModelUrlNormalizer.java
示例11: replaceDistributionManagementSite
import org.apache.maven.model.Site; //导入依赖的package包/类
@Override
public Site replaceDistributionManagementSite( Site site )
{
return site;
}
开发者ID:fedora-java,项目名称:xmvn,代码行数:6,代码来源:AbstractModelVisitor.java
示例12: replaceProfileDistributionManagementSite
import org.apache.maven.model.Site; //导入依赖的package包/类
@Override
public Site replaceProfileDistributionManagementSite( Site site )
{
return site;
}
开发者ID:fedora-java,项目名称:xmvn,代码行数:6,代码来源:AbstractModelVisitor.java
示例13: visitDistributionManagementSite
import org.apache.maven.model.Site; //导入依赖的package包/类
@Override
public void visitDistributionManagementSite( Site site )
{
}
开发者ID:fedora-java,项目名称:xmvn,代码行数:5,代码来源:AbstractModelVisitor.java
示例14: visitProfileDistributionManagementSite
import org.apache.maven.model.Site; //导入依赖的package包/类
@Override
public void visitProfileDistributionManagementSite( Site site )
{
}
开发者ID:fedora-java,项目名称:xmvn,代码行数:5,代码来源:AbstractModelVisitor.java
示例15: mergeSite
import org.apache.maven.model.Site; //导入依赖的package包/类
protected void mergeSite( Site target, Site source, boolean sourceDominant, Map<Object, Object> context )
{
mergeSite_Id( target, source, sourceDominant, context );
mergeSite_Name( target, source, sourceDominant, context );
mergeSite_Url( target, source, sourceDominant, context );
}
开发者ID:gems-uff,项目名称:oceano,代码行数:7,代码来源:ModelMerger.java
示例16: replaceDistributionManagementSite
import org.apache.maven.model.Site; //导入依赖的package包/类
Site replaceDistributionManagementSite( Site site );
开发者ID:fedora-java,项目名称:xmvn,代码行数:2,代码来源:ModelVisitor.java
示例17: replaceProfileDistributionManagementSite
import org.apache.maven.model.Site; //导入依赖的package包/类
Site replaceProfileDistributionManagementSite( Site site );
开发者ID:fedora-java,项目名称:xmvn,代码行数:2,代码来源:ModelVisitor.java
示例18: visitDistributionManagementSite
import org.apache.maven.model.Site; //导入依赖的package包/类
void visitDistributionManagementSite( Site site );
开发者ID:fedora-java,项目名称:xmvn,代码行数:2,代码来源:ModelVisitor.java
示例19: visitProfileDistributionManagementSite
import org.apache.maven.model.Site; //导入依赖的package包/类
void visitProfileDistributionManagementSite( Site site );
开发者ID:fedora-java,项目名称:xmvn,代码行数:2,代码来源:ModelVisitor.java
注:本文中的org.apache.maven.model.Site类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论