Skip to content

Commit 0e94f5b

Browse files
committed
Directory, not folder
1 parent ebdbc95 commit 0e94f5b

File tree

4 files changed

+63
-63
lines changed

4 files changed

+63
-63
lines changed

maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ protected void init() {
181181
* Checks whether the given directory contains Java files.
182182
*
183183
* @param dir the source directory
184-
* @return true if the folder or one of its subfolders contains at least 1 Java file
184+
* @return true if the directory or one of its subdirectories contains at least 1 Java file
185185
*/
186186
private boolean hasSources(File dir) {
187187
if (dir.exists() && dir.isDirectory()) {
@@ -206,7 +206,7 @@ && hasSources(currentFile)) {
206206
* directory.
207207
*
208208
* @param locale The user locale to use for the Xref generation
209-
* @param destinationDirectory The output folder
209+
* @param destinationDirectory The output directory
210210
* @param sourceDirs The source directories
211211
* @throws java.io.IOException
212212
* @throws org.apache.maven.jxr.JxrException
@@ -339,13 +339,13 @@ private void copyRequiredResources(String dir) {
339339
* Copy styles and related resources to the given directory
340340
*
341341
* @param dir the directory to copy the resources to
342-
* @param sourceFolder resources subfolder to copy from
342+
* @param sourceDirectory resources subdirectory to copy from
343343
* @param files names of files to copy
344344
*/
345-
private void copyResources(String dir, String sourceFolder, String... files) {
345+
private void copyResources(String dir, String sourceDirectory, String... files) {
346346
try {
347347
for (String file : files) {
348-
URL resourceUrl = this.getClass().getClassLoader().getResource(sourceFolder + file);
348+
URL resourceUrl = this.getClass().getClassLoader().getResource(sourceDirectory + file);
349349
File destResourceFile = new File(dir, file);
350350
FileUtils.copyURLToFile(resourceUrl, destResourceFile);
351351
}

maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ public class JxrReport extends AbstractJxrReport {
5353
private String sourcePath;
5454

5555
/**
56-
* Folder where the Xref files will be copied to.
56+
* Directory where the Xref files will be copied to.
5757
*/
5858
@Parameter(defaultValue = "${project.reporting.outputDirectory}/xref")
5959
private String destDir;
6060

6161
/**
62-
* Folder where Javadoc is generated for this project.
62+
* Directory where Javadoc is generated for this project.
6363
*/
6464
@Parameter(defaultValue = "${project.reporting.outputDirectory}/apidocs")
6565
private File javadocDir;

maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ public class JxrTestReport extends AbstractJxrReport {
4646
private List<String> sourceDirs;
4747

4848
/**
49-
* Folder where the Xref files will be copied to.
49+
* Directory where the Xref files will be copied to.
5050
*/
5151
@Parameter(defaultValue = "${project.reporting.outputDirectory}/xref-test")
5252
private String destDir;
5353

5454
/**
55-
* Folder where Test Javadoc is generated for this project.
55+
* Directory where Test Javadoc is generated for this project.
5656
*/
5757
@Parameter(defaultValue = "${project.reporting.outputDirectory}/testapidocs")
5858
private File testJavadocDir;

0 commit comments

Comments
 (0)