Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove trailing whitespace from all source files

  • Loading branch information...
commit 38930f370e115ea930564d96f71b2c233a39cd89 1 parent 5563b35
@kevinsawicki kevinsawicki authored
View
32 github-core/src/main/java/com/github/maven/plugins/core/GitHubProjectMojo.java
@@ -42,14 +42,14 @@
/**
* Base GitHub Mojo class to be extended.
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
*/
public abstract class GitHubProjectMojo extends AbstractMojo {
/**
* Get formatted exception message for {@link IOException}
- *
+ *
* @param e
* @return message
*/
@@ -59,7 +59,7 @@ public static String getExceptionMessage(IOException e) {
/**
* Is debug logging enabled?
- *
+ *
* @return true if enabled, false otherwise
*/
protected boolean isDebug() {
@@ -69,7 +69,7 @@ protected boolean isDebug() {
/**
* Is info logging enabled?
- *
+ *
* @return true if enabled, false otherwise
*/
protected boolean isInfo() {
@@ -79,7 +79,7 @@ protected boolean isInfo() {
/**
* Log given message at debug level
- *
+ *
* @param message
*/
protected void debug(String message) {
@@ -90,7 +90,7 @@ protected void debug(String message) {
/**
* Log given message and throwable at debug level
- *
+ *
* @param message
* @param throwable
*/
@@ -102,7 +102,7 @@ protected void debug(String message, Throwable throwable) {
/**
* Log given message at info level
- *
+ *
* @param message
*/
protected void info(String message) {
@@ -113,7 +113,7 @@ protected void info(String message) {
/**
* Log given message and throwable at info level
- *
+ *
* @param message
* @param throwable
*/
@@ -125,7 +125,7 @@ protected void info(String message, Throwable throwable) {
/**
* Create client
- *
+ *
* @param host
* @param userName
* @param password
@@ -162,7 +162,7 @@ protected GitHubClient createClient(String host, String userName,
* Create client
* <p>
* Subclasses can override to do any custom client configuration
- *
+ *
* @param hostname
* @return non-null client
* @throws MojoExecutionException
@@ -185,7 +185,7 @@ protected GitHubClient createClient(String hostname)
* Create client
* <p>
* Subclasses can override to do any custom client configuration
- *
+ *
* @return non-null client
*/
protected GitHubClient createClient() {
@@ -194,7 +194,7 @@ protected GitHubClient createClient() {
/**
* Configure credentials from configured username/password combination
- *
+ *
* @param client
* @param userName
* @param password
@@ -213,7 +213,7 @@ protected boolean configureUsernamePassword(final GitHubClient client,
/**
* Configure credentials from configured OAuth2 token
- *
+ *
* @param client
* @param oauth2Token
* @return true if configured, false otherwise
@@ -231,7 +231,7 @@ protected boolean configureOAuth2Token(final GitHubClient client,
/**
* Configure client with credentials from given server id
- *
+ *
* @param client
* @param serverId
* @param settings
@@ -301,7 +301,7 @@ protected boolean configureServerCredentials(final GitHubClient client,
/**
* Get repository and throw a {@link MojoExecutionException} on failures
- *
+ *
* @param project
* @param owner
* @param name
@@ -324,7 +324,7 @@ protected RepositoryId getRepository(final MavenProject project,
/**
* Get server with given id
- *
+ *
* @param settings
* @param serverId
* must be non-null and non-empty
View
4 github-core/src/main/java/com/github/maven/plugins/core/PathUtils.java
@@ -25,14 +25,14 @@
/**
* Path utilities
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
*/
public class PathUtils {
/**
* Get matching paths found in given base directory
- *
+ *
* @param includes
* @param excludes
* @param baseDir
View
8 github-core/src/main/java/com/github/maven/plugins/core/RepositoryUtils.java
@@ -30,14 +30,14 @@
/**
* Repository utilities
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
*/
public class RepositoryUtils {
/**
* Extra repository id from given SCM URL
- *
+ *
* @param url
* @return repository id or null if extraction fails
*/
@@ -56,11 +56,11 @@ public static RepositoryId extractRepositoryFromScmUrl(String url) {
/**
* Get repository
- *
+ *
* @param project
* @param owner
* @param name
- *
+ *
* @return repository id or null if none configured
*/
public static RepositoryId getRepository(final MavenProject project,
View
6 github-core/src/main/java/com/github/maven/plugins/core/StringUtils.java
@@ -26,14 +26,14 @@
/**
* String utilities
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
*/
public class StringUtils {
/**
* Are any given values null or empty?
- *
+ *
* @param values
* @return true if any null or empty, false otherwise
*/
@@ -48,7 +48,7 @@ public static boolean isEmpty(final String... values) {
/**
* Create an array with only the non-null and non-empty values
- *
+ *
* @param values
* @return non-null but possibly empty array of non-null/non-empty strings
*/
View
30 github-core/src/test/java/com/github/maven/plugins/core/ClientCredentialsTest.java
@@ -38,7 +38,7 @@
/**
* Credential tests for the various configuration types
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
*/
public class ClientCredentialsTest {
@@ -85,7 +85,7 @@ public void execute() throws MojoExecutionException,
/**
* Test configured client with direct user name and password
- *
+ *
* @throws Exception
*/
@Test
@@ -101,7 +101,7 @@ public void validUserNameAndPassword() throws Exception {
/**
* Test configured client with no user name
- *
+ *
* @throws Exception
*/
@Test(expected = MojoExecutionException.class)
@@ -112,7 +112,7 @@ public void noUserName() throws Exception {
/**
* Test configured client with no password
- *
+ *
* @throws Exception
*/
@Test(expected = MojoExecutionException.class)
@@ -123,7 +123,7 @@ public void noPassword() throws Exception {
/**
* Test configured client with token
- *
+ *
* @throws Exception
*/
@Test
@@ -139,7 +139,7 @@ public void validOAuth2Token() throws Exception {
/**
* Test configured client with token
- *
+ *
* @throws Exception
*/
@Test
@@ -155,7 +155,7 @@ public void validOAuth2TokenWithUsername() throws Exception {
/**
* Test configured client with server with username & password
- *
+ *
* @throws Exception
*/
@Test
@@ -177,7 +177,7 @@ public void validServerUsernameAndPassword() throws Exception {
/**
* Test configured client with server and no username & password
- *
+ *
* @throws Exception
*/
@Test(expected = MojoExecutionException.class)
@@ -194,7 +194,7 @@ public void noServerUsernameAndPassword() throws Exception {
/**
* Test configured client with server with OAuth 2 token
- *
+ *
* @throws Exception
*/
@Test
@@ -215,7 +215,7 @@ public void validServerToken() throws Exception {
/**
* Test configured client with missing server
- *
+ *
* @throws Exception
*/
@Test(expected = MojoExecutionException.class)
@@ -226,7 +226,7 @@ public void missingServerNoSettings() throws Exception {
/**
* Test configured client with missing server
- *
+ *
* @throws Exception
*/
@Test(expected = MojoExecutionException.class)
@@ -238,7 +238,7 @@ public void missingServerNullServers() throws Exception {
/**
* Test configured client with missing server
- *
+ *
* @throws Exception
*/
@Test(expected = MojoExecutionException.class)
@@ -251,7 +251,7 @@ public void missingServerEmptyServers() throws Exception {
/**
* Test configured client with missing server
- *
+ *
* @throws Exception
*/
@Test(expected = MojoExecutionException.class)
@@ -267,7 +267,7 @@ public void missingServerNoMatching() throws Exception {
/**
* Test configured client with no configuration
- *
+ *
* @throws Exception
*/
@Test(expected = MojoExecutionException.class)
@@ -278,7 +278,7 @@ public void noConfiguration() throws Exception {
/**
* Test configured client with no configuration
- *
+ *
* @throws Exception
*/
@Test(expected = MojoExecutionException.class)
View
8 github-core/src/test/java/com/github/maven/plugins/core/CustomHostnameTest.java
@@ -36,7 +36,7 @@
/**
* Tests using client with custom hostname
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
*/
public class CustomHostnameTest {
@@ -72,7 +72,7 @@ public void execute() throws MojoExecutionException,
/**
* Test custom hostname
- *
+ *
* @throws Exception
*/
@Test
@@ -86,7 +86,7 @@ public void validHostname() throws Exception {
/**
* Test null custom hostname
- *
+ *
* @throws Exception
*/
@Test
@@ -100,7 +100,7 @@ public void nullHostname() throws Exception {
/**
* Test empty custom hostname
- *
+ *
* @throws Exception
*/
@Test
View
10 github-core/src/test/java/com/github/maven/plugins/core/PathUtilsTest.java
@@ -33,14 +33,14 @@
/**
* Unit tests of {@link PathUtils}
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
*/
public class PathUtilsTest {
/**
* Create temporary directory to use in a test
- *
+ *
* @return directory that exists
*/
public static final File createDirectory() {
@@ -55,7 +55,7 @@ public static final File createDirectory() {
/**
* Test of {@link PathUtils#getMatchingPaths(String[], String[], String)}
- *
+ *
* @throws IOException
*/
@Test
@@ -71,7 +71,7 @@ public void singleInclude() throws IOException {
/**
* Test of {@link PathUtils#getMatchingPaths(String[], String[], String)}
- *
+ *
* @throws IOException
*/
@Test
@@ -90,7 +90,7 @@ public void singleIncludeSingleExclude() throws IOException {
/**
* Test of {@link PathUtils#getMatchingPaths(String[], String[], String)}
- *
+ *
* @throws IOException
*/
@Test
View
2  github-core/src/test/java/com/github/maven/plugins/core/RepositoryUtilsTest.java
@@ -30,7 +30,7 @@
/**
* Unit tests of {@link RepositoryUtils}
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
*/
public class RepositoryUtilsTest {
View
2  github-core/src/test/java/com/github/maven/plugins/core/StringUtilsTest.java
@@ -29,7 +29,7 @@
/**
* Unit tests of {@link StringUtils}
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
*/
public class StringUtilsTest {
View
44 github-downloads-plugin/src/main/java/com/github/maven/plugins/downloads/DownloadsMojo.java
@@ -48,7 +48,7 @@
/**
* Mojo that uploads a built resource as a GitHub repository download
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
* @goal upload
*/
@@ -56,21 +56,21 @@
/**
* Owner of repository to upload to
- *
+ *
* @parameter expression="${github.downloads.repositoryOwner}"
*/
private String repositoryOwner;
/**
* Name of repository to upload to
- *
+ *
* @parameter expression="${github.downloads.repositoryName}"
*/
private String repositoryName;
/**
* User name for authentication
- *
+ *
* @parameter expression="${github.downloads.userName}"
* default-value="${github.global.userName}"
*/
@@ -78,7 +78,7 @@
/**
* User name for authentication
- *
+ *
* @parameter expression="${github.downloads.password}"
* default-value="${github.global.password}"
*/
@@ -86,14 +86,14 @@
/**
* Description of download
- *
+ *
* @parameter
*/
private String description;
/**
* User name for authentication
- *
+ *
* @parameter expression="${github.downloads.oauth2Token}"
* default-value="${github.global.oauth2Token}"
*/
@@ -101,14 +101,14 @@
/**
* Override existing downloads
- *
+ *
* @parameter expression="${github.downloads.override}"
*/
private boolean override;
/**
* Include attached artifacts
- *
+ *
* @parameter expression="${github.downloads.includeAttached}"
*/
private boolean includeAttached;
@@ -118,14 +118,14 @@
* alter the current set of repository downloads. Showing what downloads
* will be deleted does require still listing the current downloads
* available from the repository.
- *
+ *
* @parameter expression="${github.downloads.dryRun}"
*/
private boolean dryRun;
/**
* Host for API calls
- *
+ *
* @parameter expression="${github.downloads.host}"
* default-value="${github.global.host}"
*/
@@ -134,14 +134,14 @@
/**
* Suffix to append to all uploaded files. The configured suffix will go
* before the file extension.
- *
+ *
* @parameter expression="${github.downloads.suffix}"
*/
private String suffix;
/**
* Id of server to use
- *
+ *
* @parameter expression="${github.downloads.server}"
* default-value="${github.global.server}"
*/
@@ -149,21 +149,21 @@
/**
* Files to exclude
- *
+ *
* @parameter
*/
private String[] excludes;
/**
* Files to include
- *
+ *
* @parameter
*/
private String[] includes;
/**
* Project being built
- *
+ *
* @parameter expression="${project}
* @required
*/
@@ -171,21 +171,21 @@
/**
* Session
- *
+ *
* @parameter expression="${session}
*/
private MavenSession session;
/**
* Settings
- *
+ *
* @parameter expression="${settings}
*/
private Settings settings;
/**
* Get files to create downloads from
- *
+ *
* @return non-null but possibly empty list of files
*/
protected Collection<File> getFiles() {
@@ -228,7 +228,7 @@
/**
* Get file from artifact
- *
+ *
* @param artifact
* @return existent artifact file or null
*/
@@ -241,7 +241,7 @@ protected File getArtifactFile(Artifact artifact) {
/**
* Get map of existing downloads with names mapped to download identifiers.
- *
+ *
* @param service
* @param repository
* @return map of existing downloads
@@ -272,7 +272,7 @@ protected File getArtifactFile(Artifact artifact) {
/**
* Deleting existing download with given id and name
- *
+ *
* @param repository
* @param name
* @param id
View
44 github-site-plugin/src/main/java/com/github/maven/plugins/site/SiteMojo.java
@@ -60,7 +60,7 @@
* Mojo which copies files to a GitHub repository branch. This directly uses the
* GitHub data API to upload blobs, make commits, and update references and so a
* local Git repository is not used.
- *
+ *
* @author Kevin Sawicki (kevin@github.com)
* @goal site
*/
@@ -78,21 +78,21 @@
/**
* Branch to update
- *
+ *
* @parameter default-value="refs/heads/gh-pages"
*/
private String branch = BRANCH_DEFAULT;
/**
* Path of tree
- *
+ *
* @parameter
*/
private String path;
/**
* Commit message
- *
+ *
* @parameter
* @required
*/
@@ -100,21 +100,21 @@
/**
* Name of repository
- *
+ *
* @parameter expression="${github.site.repositoryName}"
*/
private String repositoryName;
/**
* Owner of repository
- *
+ *
* @parameter expression="${github.site.repositoryOwner}"
*/
private String repositoryOwner;
/**
* User name for authentication
- *
+ *
* @parameter expression="${github.site.userName}"
* default-value="${github.global.userName}"
*/
@@ -122,7 +122,7 @@
/**
* User name for authentication
- *
+ *
* @parameter expression="${github.site.password}"
* default-value="${github.global.password}"
*/
@@ -130,7 +130,7 @@
/**
* User name for authentication
- *
+ *
* @parameter expression="${github.site.oauth2Token}"
* default-value="${github.global.oauth2Token}"
*/
@@ -138,7 +138,7 @@
/**
* Host for API calls
- *
+ *
* @parameter expression="${github.site.host}"
* default-value="${github.global.host}"
*/
@@ -146,7 +146,7 @@
/**
* Id of server to use
- *
+ *
* @parameter expression="${github.site.server}"
* default-value="${github.global.server}"
*/
@@ -154,21 +154,21 @@
/**
* Paths and patterns to include
- *
+ *
* @parameter
*/
private String[] includes;
/**
* Paths and patterns to exclude
- *
+ *
* @parameter
*/
private String[] excludes;
/**
* Base directory to commit files from
- *
+ *
* @parameter expression="${siteOutputDirectory}"
* default-value="${project.reporting.outputDirectory}"
* @required
@@ -177,7 +177,7 @@
/**
* Project being built
- *
+ *
* @parameter expression="${project}
* @required
*/
@@ -185,21 +185,21 @@
/**
* Session
- *
+ *
* @parameter expression="${session}
*/
private MavenSession session;
/**
* Settings
- *
+ *
* @parameter expression="${settings}
*/
private Settings settings;
/**
* Force reference update
- *
+ *
* @parameter expression="${github.site.force}"
*/
private boolean force;
@@ -207,7 +207,7 @@
/**
* True to always create a '.nojekyll' file at the root of the site if one
* doesn't already exist.
- *
+ *
* @parameter expression="${github.site.noJekyll}"
*/
private boolean noJekyll;
@@ -215,7 +215,7 @@
/**
* Merge with existing the existing tree that is referenced by the commit
* that the ref currently points to
- *
+ *
* @parameter expression="${github.site.merge}"
*/
private boolean merge;
@@ -224,14 +224,14 @@
* Show what blob, trees, commits, and references would be created/updated
* but don't actually perform any operations on the target GitHub
* repository.
- *
+ *
* @parameter expression="${github.site.dryRun}"
*/
private boolean dryRun;
/**
* Create blob
- *
+ *
* @param service
* @param repository
* @param path
Please sign in to comment.
Something went wrong with that request. Please try again.