Skip to content

Commit cb55288

Browse files
committed
(doc) javadoc:fix (auto)
1 parent f94b60e commit cb55288

File tree

118 files changed

+1727
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1727
-170
lines changed

maven-release-api/src/main/java/org/apache/maven/shared/release/ReleaseExecutionException.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,28 @@
2020
*/
2121

2222
/**
23-
* Exception occuring during release execution.
23+
* Exception occurring during release execution.
2424
*
2525
* @author <a href="mailto:[email protected]">Brett Porter</a>
2626
*/
2727
public class ReleaseExecutionException
2828
extends Exception
2929
{
30+
/**
31+
* Creates a new instance of <code>ReleaseExecutionException</code> without detail message.
32+
*/
3033
public ReleaseExecutionException( String message )
3134
{
3235
super( message );
3336
}
3437

35-
public ReleaseExecutionException( String message, Throwable t )
38+
/**
39+
* Constructs an instance of <code>ReleaseExecutionException</code> with the specified detail message.
40+
*
41+
* @param message the detail message.
42+
*/
43+
public ReleaseExecutionException( String message, Throwable cause )
3644
{
37-
super( message, t );
45+
super( message, cause );
3846
}
3947
}

maven-release-api/src/main/java/org/apache/maven/shared/release/ReleaseResult.java

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@
2727
*/
2828
public class ReleaseResult
2929
{
30-
public static final int UNDEFINED = -1, SUCCESS = 0, ERROR = 1;
30+
/** The result of the release. */
31+
public static final int UNDEFINED = -1;
32+
/** The release was successful. */
33+
public static final int SUCCESS = 0;
34+
/** The release failed. */
35+
public static final int ERROR = 1;
3136

3237
private StringBuilder stdOut = new StringBuilder();
3338

@@ -39,47 +44,84 @@ public class ReleaseResult
3944

4045
private static final String LS = System.getProperty( "line.separator" );
4146

47+
/**
48+
* Append Info message to the output.
49+
* @param message the message to append
50+
*/
4251
public void appendInfo( String message )
4352
{
4453
stdOut.append( "[INFO] " ).append( message ).append( LS );
4554
}
46-
55+
/**
56+
* Append warning message to the output.
57+
* @param message the message to append
58+
*/
4759
public void appendWarn( String message )
4860
{
4961
stdOut.append( "[WARN] " ).append( message ).append( LS );
5062
}
5163

64+
/**
65+
* Append debug message to the output.
66+
* @param message the message to append
67+
*/
5268
public void appendDebug( String message )
5369
{
5470
stdOut.append( "[DEBUG] " ).append( message ).append( LS );
5571
}
5672

73+
/**
74+
* Append error message to the output.
75+
* @param message the message to append
76+
* @param e the exception to append
77+
*/
5778
public void appendDebug( String message, Exception e )
5879
{
5980
appendDebug( message );
6081

6182
stdOut.append( getStackTrace( e ) ).append( LS );
6283
}
6384

85+
/**
86+
* Append error message to the output.
87+
*
88+
* @param message the message to append
89+
*/
6490
public void appendError( String message )
6591
{
6692
stdOut.append( "[ERROR] " ).append( message ).append( LS );
6793

6894
setResultCode( ERROR );
6995
}
7096

97+
/**
98+
* Append error exception to the output
99+
*
100+
* @param e the exception to append
101+
*/
71102
public void appendError( Exception e )
72103
{
73104
appendError( getStackTrace( e ) );
74105
}
75106

107+
/**
108+
* Append stack trace to the output
109+
*
110+
* @param message the message to append
111+
* @param e the exception to append
112+
*/
76113
public void appendError( String message, Exception e )
77114
{
78115
appendError( message );
79116

80117
stdOut.append( getStackTrace( e ) ).append( LS );
81118
}
82119

120+
/**
121+
* Append message to the output.
122+
*
123+
* @param message the message to append
124+
*/
83125
public void appendOutput( String message )
84126
{
85127
stdOut.append( message );

maven-release-api/src/main/java/org/apache/maven/shared/release/config/ReleaseDescriptor.java

Lines changed: 79 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.apache.maven.model.Scm;
2525

2626
/**
27+
* <p>ReleaseDescriptor interface.</p>
2728
*
2829
* @author Robert Scholte
2930
*/
@@ -119,6 +120,7 @@ public interface ReleaseDescriptor
119120

120121
/**
121122
* Get if the scm provider should sign the tag. NOTE: currently only implemented with git-exe.
123+
*
122124
* @return boolean true if SCM tag should be signed
123125
*/
124126
boolean isScmSignTags();
@@ -227,6 +229,7 @@ public interface ReleaseDescriptor
227229
boolean isScmUseEditMode();
228230

229231
/**
232+
* <p>getActivateProfiles.</p>
230233
*
231234
* @return list of profiles to activate
232235
*/
@@ -422,57 +425,129 @@ public interface ReleaseDescriptor
422425
String getReleaseStrategyId();
423426

424427
/**
425-
* @return {@code String} The original version for the resolved snapshot dependency.
428+
* <p>getDependencyOriginalVersion.</p>
426429
*
430+
* @return {@code String} The original version for the resolved snapshot dependency.
427431
* @param artifactKey the artifact key {@code String}
428432
*/
429433
String getDependencyOriginalVersion( String artifactKey );
430434

431435
/**
432-
* @return {@code String} the release version for the resolved snapshot dependency.
436+
* <p>getDependencyReleaseVersion.</p>
433437
*
438+
* @return {@code String} the release version for the resolved snapshot dependency.
434439
* @param artifactKey the artifact key {@code String}
435440
*/
436441
String getDependencyReleaseVersion( String artifactKey );
437442

438443
/**
439-
* @return {@code String} the release version for the resolved snapshot dependency.
444+
* <p>getDependencyDevelopmentVersion.</p>
440445
*
446+
* @return {@code String} the release version for the resolved snapshot dependency.
441447
* @param artifactKey the artifact key {@code String}
442448
*/
443449
String getDependencyDevelopmentVersion( String artifactKey );
444450

445451

452+
/**
453+
* <p>getProjectOriginalVersion.</p>
454+
*
455+
* @param projectKey a {@link java.lang.String} object
456+
* @return a {@link java.lang.String} object
457+
*/
446458
String getProjectOriginalVersion( String projectKey );
447459

460+
/**
461+
* <p>getProjectDevelopmentVersion.</p>
462+
*
463+
* @param projectKey a {@link java.lang.String} object
464+
* @return a {@link java.lang.String} object
465+
*/
448466
String getProjectDevelopmentVersion( String projectKey );
449467

468+
/**
469+
* <p>getProjectReleaseVersion.</p>
470+
*
471+
* @param key a {@link java.lang.String} object
472+
* @return a {@link java.lang.String} object
473+
*/
450474
String getProjectReleaseVersion( String key );
451475

452476
/**
453-
* @return the original {@code Scm} information.
477+
* <p>getOriginalScmInfo.</p>
454478
*
479+
* @return the original {@code Scm} information.
455480
* @param projectKey the project key {@code String}
456481
*/
457482
Scm getOriginalScmInfo( String projectKey );
458483

459484
// Modifiable
485+
/**
486+
* <p>addDependencyOriginalVersion.</p>
487+
*
488+
* @param versionlessKey a {@link java.lang.String} object
489+
* @param string a {@link java.lang.String} object
490+
*/
460491
void addDependencyOriginalVersion( String versionlessKey, String string );
461492

493+
/**
494+
* <p>addDependencyReleaseVersion.</p>
495+
*
496+
* @param versionlessKey a {@link java.lang.String} object
497+
* @param version a {@link java.lang.String} object
498+
*/
462499
void addDependencyReleaseVersion( String versionlessKey, String version );
463500

501+
/**
502+
* <p>addDependencyDevelopmentVersion.</p>
503+
*
504+
* @param versionlessKey a {@link java.lang.String} object
505+
* @param version a {@link java.lang.String} object
506+
*/
464507
void addDependencyDevelopmentVersion( String versionlessKey, String version );
465508

509+
/**
510+
* <p>addReleaseVersion.</p>
511+
*
512+
* @param projectId a {@link java.lang.String} object
513+
* @param nextVersion a {@link java.lang.String} object
514+
*/
466515
void addReleaseVersion( String projectId, String nextVersion );
467516

517+
/**
518+
* <p>addDevelopmentVersion.</p>
519+
*
520+
* @param projectId a {@link java.lang.String} object
521+
* @param nextVersion a {@link java.lang.String} object
522+
*/
468523
void addDevelopmentVersion( String projectId, String nextVersion );
469524

525+
/**
526+
* <p>setScmReleaseLabel.</p>
527+
*
528+
* @param tag a {@link java.lang.String} object
529+
*/
470530
void setScmReleaseLabel( String tag );
471531

532+
/**
533+
* <p>setScmReleasedPomRevision.</p>
534+
*
535+
* @param scmRevision a {@link java.lang.String} object
536+
*/
472537
void setScmReleasedPomRevision( String scmRevision );
473538

539+
/**
540+
* <p>setScmRelativePathProjectDirectory.</p>
541+
*
542+
* @param scmRelativePathProjectDirectory a {@link java.lang.String} object
543+
*/
474544
void setScmRelativePathProjectDirectory( String scmRelativePathProjectDirectory );
475545

546+
/**
547+
* <p>setScmSourceUrl.</p>
548+
*
549+
* @param scmUrl a {@link java.lang.String} object
550+
*/
476551
void setScmSourceUrl( String scmUrl );
477552

478553
/**

maven-release-api/src/main/java/org/apache/maven/shared/release/env/ReleaseEnvironment.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,52 @@
2525
import org.apache.maven.settings.Settings;
2626

2727
/**
28+
* <p>ReleaseEnvironment interface.</p>
2829
*
2930
*/
3031
public interface ReleaseEnvironment
3132
{
3233

34+
/** Constant <code>DEFAULT_MAVEN_EXECUTOR_ID="forked-path"</code> */
3335
String DEFAULT_MAVEN_EXECUTOR_ID = "forked-path";
3436

37+
/**
38+
* <p>getMavenExecutorId.</p>
39+
*
40+
* @return a {@link java.lang.String} object
41+
*/
3542
String getMavenExecutorId();
3643

44+
/**
45+
* <p>getLocalRepositoryDirectory.</p>
46+
*
47+
* @return a {@link java.io.File} object
48+
*/
3749
File getLocalRepositoryDirectory();
3850

51+
/**
52+
* <p>getSettings.</p>
53+
*
54+
* @return a {@link org.apache.maven.settings.Settings} object
55+
*/
3956
Settings getSettings();
4057

58+
/**
59+
* <p>getMavenHome.</p>
60+
*
61+
* @return a {@link java.io.File} object
62+
*/
4163
File getMavenHome();
4264

65+
/**
66+
* <p>getJavaHome.</p>
67+
*
68+
* @return a {@link java.io.File} object
69+
*/
4370
File getJavaHome();
4471

4572
/**
73+
* <p>getLocale.</p>
4674
*
4775
* @return the locale
4876
* @since 2.4

0 commit comments

Comments
 (0)