protected void mergeDistributionManagement_DownloadUrl( DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getDownloadUrl(); if ( src != null ) { if ( sourceDominant || target.getDownloadUrl() == null ) { target.setDownloadUrl( src ); target.setLocation( "downloadUrl", source.getLocation( "downloadUrl" ) ); } } }
private void setArtifactProperties( ArtifactDescriptorResult result, Model model ) { String downloadUrl = null; DistributionManagement distMgmt = model.getDistributionManagement(); if ( distMgmt != null ) { downloadUrl = distMgmt.getDownloadUrl(); } if ( downloadUrl != null && downloadUrl.length() > 0 ) { Artifact artifact = result.getArtifact(); Map<String, String> props = new HashMap<>( artifact.getProperties() ); props.put( ArtifactProperties.DOWNLOAD_URL, downloadUrl ); result.setArtifact( artifact.setProperties( props ) ); } } }
downloadUrl = distributionManagement.getDownloadUrl();
if ( StringUtils.isNotEmpty( pDistMgmt.getDownloadUrl() ) ) mDistMgmt.setDownloadUrl( pDistMgmt.getDownloadUrl() );
artifact.setDownloadUrl( distMgmt.getDownloadUrl() ); pomArtifact.setDownloadUrl( distMgmt.getDownloadUrl() );
artifact.setDownloadUrl( distMgmt.getDownloadUrl() ); pomArtifact.setDownloadUrl( distMgmt.getDownloadUrl() );
public static DistributionManagement cloneDistributionManagement( DistributionManagement src ) { if ( src == null ) { return null; } DistributionManagement result = new DistributionManagement(); result.setDownloadUrl( src.getDownloadUrl() ); result.setRelocation( cloneRelocation( src.getRelocation() ) ); result.setRepository( cloneDeploymentRepository( src.getRepository() ) ); result.setSite( cloneSite( src.getSite() ) ); result.setSnapshotRepository( cloneDeploymentRepository( src.getSnapshotRepository() ) ); result.setStatus( src.getStatus() ); return result; }
if ( distributionManagement.getDownloadUrl() != null ) serializer.startTag( NAMESPACE, "downloadUrl" ).text( distributionManagement.getDownloadUrl() ).endTag( NAMESPACE, "downloadUrl" );
if ( StringUtils.isEmpty( childDistMgmt.getDownloadUrl() ) ) childDistMgmt.setDownloadUrl( parentDistMgmt.getDownloadUrl() );
if ( StringUtils.isEmpty( childDistMgmt.getDownloadUrl() ) ) childDistMgmt.setDownloadUrl( parentDistMgmt.getDownloadUrl() );
if ( distributionManagement.getDownloadUrl() != null ) serializer.attribute( NAMESPACE, "downloadUrl", distributionManagement.getDownloadUrl() );
protected void mergeDistributionManagement_DownloadUrl( DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getDownloadUrl(); if ( src != null ) { if ( sourceDominant || target.getDownloadUrl() == null ) { target.setDownloadUrl( src ); target.setLocation( "downloadUrl", source.getLocation( "downloadUrl" ) ); } } }
private void setArtifactProperties( ArtifactDescriptorResult result, Model model ) { String downloadUrl = null; DistributionManagement distMngt = model.getDistributionManagement(); if ( distMngt != null ) { downloadUrl = distMngt.getDownloadUrl(); } if ( downloadUrl != null && downloadUrl.length() > 0 ) { Artifact artifact = result.getArtifact(); Map<String, String> props = new HashMap<>( artifact.getProperties() ); props.put( ArtifactProperties.DOWNLOAD_URL, downloadUrl ); result.setArtifact( artifact.setProperties( props ) ); } } }
private void setArtifactProperties( ArtifactDescriptorResult result, Model model ) { String downloadUrl = null; DistributionManagement distMngt = model.getDistributionManagement(); if ( distMngt != null ) { downloadUrl = distMngt.getDownloadUrl(); } if ( downloadUrl != null && downloadUrl.length() > 0 ) { Artifact artifact = result.getArtifact(); Map<String, String> props = new HashMap<String, String>( artifact.getProperties() ); props.put( ArtifactProperties.DOWNLOAD_URL, downloadUrl ); result.setArtifact( artifact.setProperties( props ) ); } }
private void setArtifactProperties( ArtifactDescriptorResult result, Model model ) { String downloadUrl = null; DistributionManagement distMgmt = model.getDistributionManagement(); if ( distMgmt != null ) { downloadUrl = distMgmt.getDownloadUrl(); } if ( downloadUrl != null && downloadUrl.length() > 0 ) { Artifact artifact = result.getArtifact(); Map<String, String> props = new HashMap<>( artifact.getProperties() ); props.put( ArtifactProperties.DOWNLOAD_URL, downloadUrl ); result.setArtifact( artifact.setProperties( props ) ); } } }
/** * Method updateDistributionManagement. * * @param value * @param element * @param counter * @param xmlTag */ protected void updateDistributionManagement(DistributionManagement 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); updateDeploymentRepository( value.getRepository(), "repository", innerCount, root); updateDeploymentRepository( value.getSnapshotRepository(), "snapshotRepository", innerCount, root); updateSite( value.getSite(), "site", innerCount, root); findAndReplaceSimpleElement(innerCount, root, "downloadUrl", value.getDownloadUrl(), null); updateRelocation( value.getRelocation(), "relocation", innerCount, root); findAndReplaceSimpleElement(innerCount, root, "status", value.getStatus(), null); } } //-- void updateDistributionManagement(DistributionManagement, String, Counter, Element)
/** * Method updateDistributionManagement * * @param value * @param element * @param counter * @param xmlTag */ protected void updateDistributionManagement(DistributionManagement 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); updateDeploymentRepository( value.getRepository(), "repository", innerCount, root); updateDeploymentRepository( value.getSnapshotRepository(), "snapshotRepository", innerCount, root); updateSite( value.getSite(), "site", innerCount, root); findAndReplaceSimpleElement(innerCount, root, "downloadUrl", value.getDownloadUrl(), null); updateRelocation( value.getRelocation(), "relocation", innerCount, root); findAndReplaceSimpleElement(innerCount, root, "status", value.getStatus(), null); } } //-- void updateDistributionManagement(DistributionManagement, String, Counter, Element)
/** * Method updateDistributionManagement * * @param value * @param element * @param counter * @param xmlTag */ protected void updateDistributionManagement( DistributionManagement 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 ); updateDeploymentRepository( value.getRepository(), "repository", innerCount, root ); updateDeploymentRepository( value.getSnapshotRepository(), "snapshotRepository", innerCount, root ); updateSite( value.getSite(), "site", innerCount, root ); findAndReplaceSimpleElement( innerCount, root, "downloadUrl", value.getDownloadUrl(), null ); updateRelocation( value.getRelocation(), "relocation", innerCount, root ); findAndReplaceSimpleElement( innerCount, root, "status", value.getStatus(), null ); } } // -- void updateDistributionManagement(DistributionManagement, String, Counter, Element)
/** * Method updateDistributionManagement. * * @param value * @param element * @param counter * @param xmlTag */ protected void updateDistributionManagement(DistributionManagement 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); updateDeploymentRepository(value.getRepository(), "repository", innerCount, root); updateDeploymentRepository(value.getSnapshotRepository(), "snapshotRepository", innerCount, root); updateSite(value.getSite(), "site", innerCount, root); findAndReplaceSimpleElement(innerCount, root, "downloadUrl", value.getDownloadUrl(), null); updateRelocation(value.getRelocation(), "relocation", innerCount, root); findAndReplaceSimpleElement(innerCount, root, "status", value.getStatus(), null); } } // -- void updateDistributionManagement(DistributionManagement, String, // Counter, Element)
/** * Method updateDistributionManagement * * @param value * @param element * @param counter * @param xmlTag */ protected void updateDistributionManagement( DistributionManagement 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 ); updateDeploymentRepository( value.getRepository(), "repository", innerCount, root ); updateDeploymentRepository( value.getSnapshotRepository(), "snapshotRepository", innerCount, root ); updateSite( value.getSite(), "site", innerCount, root ); findAndReplaceSimpleElement( innerCount, root, "downloadUrl", value.getDownloadUrl(), null ); updateRelocation( value.getRelocation(), "relocation", innerCount, root ); findAndReplaceSimpleElement( innerCount, root, "status", value.getStatus(), null ); } } // -- void updateDistributionManagement(DistributionManagement, String, Counter, Element)