From bbefa79cffc2ba04d1c18edd5ab0917d91da788a Mon Sep 17 00:00:00 2001
From: Elliotte Rusty Harold
* There are two types of status defined in this class:
- * 1) Status: Changes in the working tree, not yet committed to the repository eg. MODIFIED
- * 2) Transaction: The file is part of some transaction with the repository eg. CHECKED_IN
+ * 1) Status: Changes in the working tree, not yet committed to the repository e.g. MODIFIED
+ * 2) Transaction: The file is part of some transaction with the repository e.g. CHECKED_IN
*
* Typically used from derived classes when wrapping a ScmResult
- * into a specific type eg. AddScmResult
+ * into a specific type e.g. AddScmResult
*
* @param scmResult not null
*/
@@ -87,7 +87,7 @@ public boolean isSuccess() {
/**
* @return A message from the provider. On success this would typically be null or
- * an empty string. On failure it would be the error message from the provider
+ * an empty string. On failure, it would be the error message from the provider
*/
public String getProviderMessage() {
return providerMessage;
diff --git a/maven-scm-api/src/main/java/org/apache/maven/scm/command/remoteinfo/RemoteInfoScmResult.java b/maven-scm-api/src/main/java/org/apache/maven/scm/command/remoteinfo/RemoteInfoScmResult.java
index 9320be673..7992877b2 100644
--- a/maven-scm-api/src/main/java/org/apache/maven/scm/command/remoteinfo/RemoteInfoScmResult.java
+++ b/maven-scm-api/src/main/java/org/apache/maven/scm/command/remoteinfo/RemoteInfoScmResult.java
@@ -31,13 +31,13 @@ public class RemoteInfoScmResult extends ScmResult {
private static final long serialVersionUID = -5571403202068311222L;
/**
- * depending on scm informations can be different
+ * depending on scm, information can be different
* svn: branch name / remote url
*/
private Map
* These commands do not necessarily correspond to the SCM API.
- * Eg. "check in" is translated to be "commit" and "push".
+ * e.g. "check in" is translated to be "commit" and "push".
*
* @author thurner rupert
*/
diff --git a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gittest/src/main/java/org/apache/maven/scm/provider/git/sshd/git/pack/README.txt b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gittest/src/main/java/org/apache/maven/scm/provider/git/sshd/git/pack/README.txt
index 1a27a1ac0..616060a96 100644
--- a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gittest/src/main/java/org/apache/maven/scm/provider/git/sshd/git/pack/README.txt
+++ b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gittest/src/main/java/org/apache/maven/scm/provider/git/sshd/git/pack/README.txt
@@ -1,5 +1,5 @@
This is just a minimum fork of https://github.com/apache/mina-sshd/tree/sshd-2.11.0/sshd-git/src/main/java/org/apache/sshd/git/pack
to include the patch https://github.com/apache/mina-sshd/pull/794.
-Otherwise the SSH server cannot be used on Windows as it leaves files open.
+Otherwise, the SSH server cannot be used on Windows as it leaves files open.
TODO: Remove once a Mina SSHD release is available that includes this patch.
\ No newline at end of file
diff --git a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/JGitUtils.java b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/JGitUtils.java
index 17a0e6664..eb1a30769 100644
--- a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/JGitUtils.java
+++ b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/JGitUtils.java
@@ -129,8 +129,7 @@ public static ProgressMonitor getMonitor() {
*
* @param git the instance to configure (only in memory, not saved)
* @param repository the repo config to be used
- * @return {@link CredentialsProvider} in case there are credentials
- * informations configured in the repository.
+ * @return {@link CredentialsProvider} in case credential information is configured in the repository.
*/
public static CredentialsProvider prepareSession(Git git, GitScmProviderRepository repository) {
StoredConfig config = git.getRepository().getConfig();
diff --git a/maven-scm-test/src/main/java/org/apache/maven/scm/ScmTckTestCase.java b/maven-scm-test/src/main/java/org/apache/maven/scm/ScmTckTestCase.java
index d48d13a80..078a1deec 100644
--- a/maven-scm-test/src/main/java/org/apache/maven/scm/ScmTckTestCase.java
+++ b/maven-scm-test/src/main/java/org/apache/maven/scm/ScmTckTestCase.java
@@ -43,7 +43,7 @@
/**
* Base class for all TcK tests.
*
- * Basically all it does is to setup a default test enviroment
+ * Basically all it does is to set up a default test enviroment
* common for all tck tests. The default setup includes:
* svn
, git
+ * @param providerType the type of SCM, e.g. svn
, git
* @param provider the provider that will be used for that SCM type
* @deprecated use {@link #setScmProvider(String, ScmProvider)} instead
*/
@@ -94,7 +94,7 @@ protected void addScmProvider(String providerType, ScmProvider provider) {
* Set a provider to be used for a type of SCM.
* If there was already a designed provider for that type it will be replaced.
*
- * @param providerType the type of SCM, eg. svn
, git
+ * @param providerType the type of SCM, e.g. svn
, git
* @param provider the provider that will be used for that SCM type
*/
@Override
diff --git a/maven-scm-api/src/main/java/org/apache/maven/scm/manager/ScmManager.java b/maven-scm-api/src/main/java/org/apache/maven/scm/manager/ScmManager.java
index abb7ea6e6..ad651c54f 100644
--- a/maven-scm-api/src/main/java/org/apache/maven/scm/manager/ScmManager.java
+++ b/maven-scm-api/src/main/java/org/apache/maven/scm/manager/ScmManager.java
@@ -63,7 +63,7 @@ public interface ScmManager {
// ----------------------------------------------------------------------
/**
- * Generate a SCMRepository from a SCM url.
+ * Generate a SCMRepository from an SCM URL.
*
* @param scmUrl the scm url
* @return The scm repository
@@ -102,7 +102,7 @@ ScmRepository makeProviderScmRepository(String providerType, File path)
* Set a provider to be used for a type of SCM. If there was already a designed provider for that type it will be
* replaced.
*
- * @param providerType the type of SCM, eg. svn
, git
+ * @param providerType the type of SCM, e.g. svn
, git
* @param provider the provider that will be used for that SCM type
*/
void setScmProvider(String providerType, ScmProvider provider);
@@ -110,8 +110,8 @@ ScmRepository makeProviderScmRepository(String providerType, File path)
/**
* Set the provider implementation
*
- * @param providerType The provider type, eg. git
- * @param providerImplementation The provider implementation (the role-hint of the provider), eg. git
,
+ * @param providerType The provider type, e.g. git
+ * @param providerImplementation The provider implementation (the role-hint of the provider), e.g. git
,
* svn
*/
void setScmProviderImplementation(String providerType, String providerImplementation);
@@ -378,9 +378,9 @@ DiffScmResult diff(
throws ScmException;
/**
- * Make a file editable. This is used in source control systems where you look at read-only files and you need to
- * make them not read-only anymore before you can edit them. This can also mean that no other user in the system can
- * make the file not read-only anymore.
+ * Make a file editable. This is used in source control systems where you look at read-only files, and you need to
+ * make them writable before you can edit them. This can also mean that no other user in the system can
+ * make the file writable.
*
* @param repository the source control system
* @param fileSet the files to make editable
diff --git a/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProvider.java b/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProvider.java
index 9418af67c..c8829022d 100644
--- a/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProvider.java
+++ b/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProvider.java
@@ -865,9 +865,9 @@ UpdateScmResult update(
throws ScmException;
/**
- * Make a file editable. This is used in source control systems where you look at read-only files
- * and you need to make them not read-only anymore before you can edit them. This can also mean
- * that no other user in the system can make the file not read-only anymore.
+ * Make a file editable. This is used in source control systems where you look at read-only files,
+ * and you need to make them writable before you can edit them. This can also mean
+ * that no other user in the system can make the file writable.
*
* @param repository the source control system
* @param fileSet the files to make editable
diff --git a/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProviderRepository.java b/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProviderRepository.java
index ff16e74b7..aa0599dc3 100644
--- a/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProviderRepository.java
+++ b/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProviderRepository.java
@@ -165,7 +165,7 @@ public void setPersistCheckout(boolean persistCheckout) {
/**
* Get a {@link ScmProviderRepository} that represents the parent folder in the repository.
- * Useful when the repository does not exist yet and we need to create it from the parent.
+ * Useful when the repository does not exist yet, and we need to create it from the parent.
*
* @return the parent repository
* @throws UnsupportedOperationException unless overridden by subclass
diff --git a/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java b/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java
index b8a76a9b8..6cd7d9c39 100644
--- a/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java
+++ b/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java
@@ -158,7 +158,7 @@ private void runGoals(String relativePathProjectDirectory) throws MojoExecutionE
/**
* Determines the path of the working directory. By default, this is the checkout directory. For some SCMs,
- * the project root directory is not the checkout directory itself, but a SCM-specific subdirectory. The
+ * the project root directory is not the checkout directory itself, but an SCM-specific subdirectory. The
* build can furthermore optionally be executed in a subdirectory of this project directory, in case.
*
* @param checkoutDirectory
diff --git a/maven-scm-plugin/src/site/markdown/usage.md b/maven-scm-plugin/src/site/markdown/usage.md
index d43b27c92..453edd782 100644
--- a/maven-scm-plugin/src/site/markdown/usage.md
+++ b/maven-scm-plugin/src/site/markdown/usage.md
@@ -61,7 +61,7 @@ Check the [Maven SCM list](http://maven.apache.org/scm/scms-overview.html) for t
# Committing and updating changes through Maven
-Assuming that SCM has been configured in the `pom.xml` and the project directory is managed by a SCM, invoking the checkin goal in the SCM will start the commit process for all configured sources in your `pom.xml`.
+Assuming that SCM has been configured in the `pom.xml` and the project directory is managed by an SCM, invoking the checkin goal in the SCM will start the commit process for all configured sources in your `pom.xml`.
**The files should be added beforehand by an external scm client.**
diff --git a/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/HgCommandConstants.java b/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/HgCommandConstants.java
index 416f60c29..741480cf1 100644
--- a/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/HgCommandConstants.java
+++ b/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/HgCommandConstants.java
@@ -22,7 +22,7 @@
* Available/Used hg commands.
*
*