Skip to content

Commit

Permalink
[MSITE-1013] Deprecate and rename SiteStageDeployMojo#stagingReposito…
Browse files Browse the repository at this point in the history
…ryId to #stagingSiteId
  • Loading branch information
michael-o committed Jul 9, 2024
1 parent 1fc3b09 commit 3ff6f69
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ public class SiteStageDeployMojo extends AbstractStagingMojo {
private String stagingSiteURL;

/**
* The identifier of the repository where the staging site will be deployed. This id will be used to lookup a
* The identifier of the site where the staged site will be deployed. This id will be used to lookup a
* corresponding <code>&lt;server&gt;</code> entry from the <code>settings.xml</code>. If a matching
* <code>&lt;server&gt;</code> entry is found, its configured credentials will be used for authentication.
* <p/>
* If this is not specified, then the corresponding value of <code>distributionManagement.site.id</code>
* will be taken as default, unless this is not defined either then the String
* <code>"stagingSite"</code> is used. (<strong>Note</strong>:
* until v. 2.3 and 3.0-beta-3 the String <code>"stagingSite"</code> is always used.)
* <code>"stagingSite"</code> is used. Note that the alias {@code stagingRepositoryId} is deprecated
* for removal.
*
* @since 2.0.1
*/
@Parameter(property = "stagingRepositoryId")
private String stagingRepositoryId;
@Parameter(property = "stagingSiteId", alias = "stagingRepositoryId")
private String stagingSiteId;

@Override
protected boolean isDeploy() {
Expand Down Expand Up @@ -109,7 +109,7 @@ protected String determineTopDistributionManagementSiteUrl() throws MojoExecutio
protected Site determineDeploySite() throws MojoExecutionException {
Site top = new Site();

top.setId(stagingRepoId());
top.setId(determineStagingSiteId());
getLog().info("Using this server ID for stage deploy: " + top.getId());

String stagingURL = determineStageDeploySiteURL();
Expand Down Expand Up @@ -213,9 +213,9 @@ private String determineStageDeploySiteURL() throws MojoExecutionException {
return defaultStagingSiteURL;
}

private String stagingRepoId() {
if (stagingRepositoryId != null) {
return stagingRepositoryId;
private String determineStagingSiteId() {
if (stagingSiteId != null) {
return stagingSiteId;
}

try {
Expand Down

0 comments on commit 3ff6f69

Please sign in to comment.