Skip to content

Commit

Permalink
SCM-775: revert the change, so that I can release this plugin.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/maven/release/trunk@1708587 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
bimargulies committed Oct 14, 2015
1 parent bef0df9 commit b639619
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 41 deletions.
2 changes: 1 addition & 1 deletion maven-release-manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
</execution>
</executions>
<configuration>
<version>2.5.3</version>
<version>2.5.1</version>
<packageWithVersion>false</packageWithVersion>
<useJava5>true</useJava5>
<models>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,6 @@ public void write( ReleaseDescriptor config, File file )

properties.setProperty( "pushChanges", Boolean.toString( config.isPushChanges() ) );

if ( config.getWorkItem() != null )
{
properties.setProperty( "workItem", config.getWorkItem() );
}

// others boolean properties are not written to the properties file because the value from the caller is always
// used

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public static ReleaseDescriptor merge( ReleaseDescriptor mergeInto, ReleaseDescr
mergeInto.setRemoteTagging( toBeMerged.isRemoteTagging() );
mergeInto.setLocalCheckout( toBeMerged.isLocalCheckout() );
mergeInto.setPushChanges( toBeMerged.isPushChanges() );
mergeInto.setWorkItem( toBeMerged.getWorkItem() );
mergeInto.setWaitBeforeTagging( toBeMerged.getWaitBeforeTagging() );

// If the user specifies versions, these should be override the existing versions
Expand Down Expand Up @@ -174,7 +173,6 @@ public static ReleaseDescriptor copyPropertiesToReleaseDescriptor( Properties pr
remoteTaggingStr == null ? false : Boolean.valueOf( remoteTaggingStr ).booleanValue() );
String pushChanges = properties.getProperty( "pushChanges" );
releaseDescriptor.setPushChanges( pushChanges == null ? true : Boolean.valueOf( pushChanges ).booleanValue() );
String workItem = properties.getProperty( "workItem" );

loadResolvedDependencies( properties, releaseDescriptor );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ protected void performCheckins( ReleaseDescriptor releaseDescriptor, ReleaseEnvi

repository.getProviderRepository().setPushChanges( releaseDescriptor.isPushChanges() );

repository.getProviderRepository().setWorkItem( releaseDescriptor.getWorkItem() );

provider = scmRepositoryConfigurator.getRepositoryProvider( repository );
}
catch ( ScmRepositoryException e )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ public ReleaseResult execute( ReleaseDescriptor releaseDescriptor, ReleaseEnviro

repository.getProviderRepository().setPushChanges( releaseDescriptor.isPushChanges() );

repository.getProviderRepository().setWorkItem( releaseDescriptor.getWorkItem() );

provider = scmRepositoryConfigurator.getRepositoryProvider( repository );

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ public ReleaseResult execute( ReleaseDescriptor releaseDescriptor, ReleaseEnviro

repository.getProviderRepository().setPushChanges( releaseDescriptor.isPushChanges() );

repository.getProviderRepository().setWorkItem( releaseDescriptor.getWorkItem() );

provider = scmRepositoryConfigurator.getRepositoryProvider( repository );
}
catch ( ScmRepositoryException e )
Expand Down
16 changes: 0 additions & 16 deletions maven-release-manager/src/main/mdo/release-descriptor.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -499,17 +499,6 @@
</description>
</field>

<field>
<name>workItem</name>
<version>2.5.3+</version>
<type>String</type>
<description>
Some SCMs may require a Work Item or a Task to allow the changes to be pushed or delivered.
This field allows you to specify that Work Item or Task. It is optional, and only relevant
if pushChanges is true.
</description>
</field>

<!-- Announcement Information
Announcement related info, this can be a second part of the process.
Expand Down Expand Up @@ -729,10 +718,6 @@
{
return false;
}
if ( !safeEquals( workItem, that.workItem ) )
{
return false;
}
if ( ( checkModificationExcludes == null || ( checkModificationExcludes != null && checkModificationExcludes.size() == 0) ) &&
( that.checkModificationExcludes == null || ( that.checkModificationExcludes != null && that.checkModificationExcludes.size() == 0) ) )
{
Expand Down Expand Up @@ -957,7 +942,6 @@
result = 29 * result + ( remoteTagging ? 1 : 0 );
result = 29 * result + ( localCheckout ? 1 : 0 );
result = 29 * result + ( pushChanges ? 1 : 0 );
result = 29 * result + ( workItem != null ? workItem.hashCode() : 0 );
result = 29 * result + ( defaultDevelopmentVersion != null ? defaultDevelopmentVersion.hashCode() : 0 );
result = 29 * result + ( scmRelativePathProjectDirectory != null ? scmRelativePathProjectDirectory.hashCode() : 0 );
result = 29 * result + ( checkoutDirectory != null ? checkoutDirectory.hashCode() : 0 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,6 @@ public abstract class AbstractScmReleaseMojo
@Parameter( defaultValue = "true", property = "pushChanges" )
private boolean pushChanges = true;

/**
* A workItem for SCMs like RTC, TFS etc, that may require additional
* information to perform a pushChange operation.
*
* @since 2.5.3
*/
@Parameter( property = "workItem" )
private String workItem;

/**
* Add a new or overwrite the default implementation per provider.
* The key is the scm prefix and the value is the role hint of the
Expand Down Expand Up @@ -150,7 +141,6 @@ protected ReleaseDescriptor createReleaseDescriptor()
descriptor.setScmCommentPrefix( scmCommentPrefix );

descriptor.setPushChanges( pushChanges );
descriptor.setWorkItem( workItem );

return descriptor;
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</contributors>

<properties>
<scmVersion>1.9.5-SNAPSHOT</scmVersion>
<scmVersion>1.9.4</scmVersion>
<mavenVersion>2.2.1</mavenVersion>
<maven.site.path>maven-release-archives/maven-release-LATEST</maven.site.path>
</properties>
Expand Down

0 comments on commit b639619

Please sign in to comment.