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" ) ); } } }
@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( extrapolateChildUrl( src, source.isChildSiteUrlInheritAppendPath(), context ) ); target.setLocation( "url", source.getLocation( "url" ) ); } } }
public static Site cloneSite( Site src ) { if ( src == null ) { return null; } Site result = new Site(); result.setId( src.getId() ); result.setName( src.getName() ); result.setUrl( src.getUrl() ); return result; }
site.setUrl( interpolatedTrimmed( parser.nextText(), "url" ) );
@Override 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() ) ); } } }
site.setUrl( interpolatedTrimmed( parser.nextText(), "url" ) );
site.setUrl( getTrimmedValue( value ) );
/** * Set the url of the location where website is deployed, in * the form <code>protocol://hostname/path</code>. * <br /><b>Default value is</b>: parent value [+ * path adjustment] + artifactId. * * @param url */ public FluentSiteBuilder withUrl(String url) { site.setUrl(url); return this; } }
@Override protected void doAction() throws Exception { Properties properties = project.getProperties(); getLog().info("export siteDeployClassifier [" + siteDeployClassifier + "]"); properties.setProperty("siteDeployClassifier", siteDeployClassifier); if (isVerbose()) { getLog().info("distributionManagement site url [" + distributionSiteUrl + "]"); } project.getDistributionManagement().getSite().setUrl(distributionSiteUrl); }
@Override protected Site determineDeploySite() throws MojoExecutionException { Site staging = new Site(); staging.setId( "stagingLocal" ); final File outputDirectory = determineStagingDirectory(); getLog().info( "Using this base directory for staging: " + outputDirectory ); // Safety if ( !outputDirectory.exists() ) { outputDirectory.mkdirs(); } staging.setUrl( "file://" + outputDirectory.getAbsolutePath() ); return staging; }
private void updateSiteUrl(String url, String siteUrl) { project.getDistributionManagement().getSite().setUrl(siteUrl); project.setUrl(url); }
@Override protected Site determineDeploySite() throws MojoExecutionException { Site top = new Site(); top.setId( stagingRepoId() ); getLog().info( "Using this server ID for stage deploy: " + top.getId() ); String stagingURL = determineStageDeploySiteURL(); getLog().info( "Using this base URL for stage deploy: " + stagingURL ); top.setUrl( stagingURL ); return top; }
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" ) ); } } }
@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( extrapolateChildUrl( src, source.isChildInheritAppendPath(), context ) ); target.setLocation( "url", source.getLocation( "url" ) ); } } }
private static void setDistMgmntSiteUrl( Model model, String url ) { if ( model.getDistributionManagement() == null ) { model.setDistributionManagement( new DistributionManagement() ); } if ( model.getDistributionManagement().getSite() == null ) { model.getDistributionManagement().setSite( new Site() ); } model.getDistributionManagement().getSite().setUrl( url ); } }
moduleProject.setDistributionManagement( new DistributionManagement() ); moduleProject.getDistributionManagement().setSite( new Site() ); moduleProject.getDistributionManagement().getSite().setUrl( module );
site.setUrl( getTrimmedValue( parser.nextText() ) );
@Override 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() ) ); } } }